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

# Issue a signed, scoped authorization grant.



## OpenAPI

````yaml /openapi/v1.yaml post /authorizations
openapi: 3.1.0
info:
  title: Attexra API
  version: 0.1.0
  description: >-
    Identity, scoped authorization, and auditable action evidence for autonomous
    agents. The MVP is non-custodial and does not execute payments.
servers:
  - url: /v1
    description: Current API server
  - url: https://api.attexra.example/v1
    description: Production example
security:
  - apiKeyAuth: []
  - bearerAuth: []
paths:
  /authorizations:
    post:
      summary: Issue a signed, scoped authorization grant.
      operationId: createAuthorization
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAuthorizationRequest'
      responses:
        '201':
          description: Authorization issued.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Authorization'
        '400':
          $ref: '#/components/responses/ValidationError'
components:
  parameters:
    IdempotencyKey:
      in: header
      name: Idempotency-Key
      required: true
      description: Unique key ensuring safe retries on write endpoints.
      schema:
        type: string
        minLength: 1
        maxLength: 255
  schemas:
    CreateAuthorizationRequest:
      type: object
      required:
        - agentId
        - action
        - resource
        - expiresAt
      properties:
        agentId:
          type: string
          format: uuid
        action:
          type: string
          example: payment.create
        resource:
          type: string
        recipient:
          type: string
        asset:
          type: string
          example: USDC
        maximumAmount:
          type: string
          pattern: ^[0-9]+(\\.[0-9]+)?$
        expiresAt:
          type: string
          format: date-time
        approvalRequired:
          type: boolean
          default: false
    Authorization:
      type: object
      required:
        - id
        - agentId
        - status
        - grant
        - expiresAt
      properties:
        id:
          type: string
          format: uuid
        agentId:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - active
            - revoked
            - expired
        grant:
          type: string
          description: Signed authorization token.
        expiresAt:
          type: string
          format: date-time
  responses:
    ValidationError:
      description: The request failed validation.
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Console session token (also supported via attexra_session HttpOnly
        cookie).

````

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