> ## Documentation Index
> Fetch the complete documentation index at: https://docs.antarah.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Resume a policy



## OpenAPI

````yaml POST /v1/organization/policies/{policy_id}/resume
openapi: 3.1.0
info:
  title: Antara API
  version: 1.0.0
  description: OpenAI- and Anthropic-compatible inference plus organization management.
servers:
  - url: https://api.antarah.dev
security: []
paths:
  /v1/organization/policies/{policy_id}/resume:
    post:
      summary: Resume a paused policy in its current version's mode
      parameters:
        - schema:
            type: string
            pattern: ^pol_[0-9a-f]{32}$
            example: pol_0193a6c2e7b47c3d9f1e2a4b5c6d7e8f
          required: true
          name: policy_id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PolicyRevision'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Policy'
        '409':
          description: '`policy_revision_conflict`, `policy_state_conflict`'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '422':
          description: '`invalid_policy`, `invalid_policy_project`'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        default:
          description: RFC 9457 problem details
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      security:
        - adminKey: []
        - session: []
components:
  schemas:
    PolicyRevision:
      type: object
      properties:
        revision:
          type: integer
          minimum: 1
      required:
        - revision
      additionalProperties: false
    Policy:
      type: object
      properties:
        id:
          type: string
          pattern: ^pol_[0-9a-f]{32}$
          example: pol_0193a6c2e7b47c3d9f1e2a4b5c6d7e8f
        object:
          type: string
          enum:
            - organization.policy
        name:
          type: string
        description:
          type: string
        state:
          type: string
          enum:
            - draft
            - monitoring
            - enforcing
            - paused
        revision:
          type: integer
        has_unpublished_changes:
          type: boolean
        current_version:
          type:
            - integer
            - 'null'
        created_at:
          type: integer
          description: Unix seconds
          example: 1793750400
        updated_at:
          type: integer
          description: Unix seconds
          example: 1793750400
        draft:
          $ref: '#/components/schemas/PolicySettings'
        published:
          $ref: '#/components/schemas/PolicyVersion'
      required:
        - id
        - object
        - name
        - description
        - state
        - revision
        - has_unpublished_changes
        - current_version
        - created_at
        - updated_at
        - draft
        - published
    Problem:
      type: object
      properties:
        type:
          type: string
        title:
          type: string
        status:
          type: integer
        detail:
          type:
            - string
            - 'null'
        instance:
          type: string
        code:
          type: string
        request_id:
          type: string
        param:
          type:
            - string
            - 'null'
        errors:
          type: array
          items:
            type: object
            properties:
              pointer:
                type: string
              detail:
                type: string
            required:
              - pointer
              - detail
      required:
        - type
        - title
        - status
        - detail
        - instance
        - code
        - request_id
        - param
    PolicySettings:
      type: object
      properties:
        rule:
          type: string
        direction:
          type: string
          enum:
            - request
            - response
            - both
        mode:
          type: string
          enum:
            - monitoring
            - enforcing
        scope:
          type: string
          enum:
            - organization
            - projects
            - unattached
        project_ids:
          type: array
          items:
            type: string
            pattern: ^proj_[0-9a-f]{32}$
            example: proj_0193a6c2e7b47c3d9f1e2a4b5c6d7e8f
        match_threshold_basis_points:
          type:
            - integer
            - 'null'
      required:
        - rule
        - direction
        - mode
        - scope
        - project_ids
        - match_threshold_basis_points
    PolicyVersion:
      allOf:
        - $ref: '#/components/schemas/PolicySettings'
        - type:
            - object
            - 'null'
          properties:
            id:
              type: string
              pattern: ^polv_[0-9a-f]{32}$
              example: polv_0193a6c2e7b47c3d9f1e2a4b5c6d7e8f
            object:
              type: string
              enum:
                - organization.policy.version
            version:
              type: integer
            published_at:
              type: integer
              description: Unix seconds
              example: 1793750400
            current:
              type: boolean
          required:
            - id
            - object
            - version
            - published_at
            - current
  securitySchemes:
    adminKey:
      type: http
      scheme: bearer
      description: '`ak_admin_…` Admin API key'
    session:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Supabase access token + `Antara-Organization` (management) or
        `Antara-Project` (inference)

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.