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

# Get agent identity

> Return the authenticated agent grant with its shopper reference, effective scopes and whether new purchases are currently enabled. Requires an agent credential issued by `POST /v1/agent-grants`; an expired, revoked or invalid credential returns `401`.



## OpenAPI

````yaml /agents-api.json get /v1/agent/me
openapi: 3.1.0
info:
  description: >-
    Multi-merchant checkout infrastructure (808labs). UAE/AED first on Stripe;
    Saudi/SAR follows separate certification. OpenAPI is canonical; customers
    can integrate without an SDK. Customer dashboard authentication uses
    verified OIDC; workspace access requires an invitation or explicitly enabled
    Sandbox self-registration; machine integrations use scoped API keys. Plans
    and usage are defined in the developer guide. Internal operator and provider
    callback contracts are excluded.
  title: Ignyt Agents API
  version: 0.1.0
servers:
  - url: https://sandbox.ignite-checkout.ai
    description: 'Planned Sandbox host: use assigned deployment URL until activated'
  - url: https://api.ignite-checkout.ai
    description: 'Planned Production host: separate approval and Live credentials required'
security: []
tags:
  - name: Grants and approval
    description: Partner-server calls that issue shopper grants and record exact approvals.
  - name: Agent identity
    description: The current delegation and its effective capabilities.
  - name: Discovery
    description: Merchants, products and variants the shopper may buy.
  - name: Checkout
    description: Read approval and start or follow delegated checkout.
  - name: Carts and quotes
    description: Shopper carts, lines, address, coupons and quotes.
  - name: Purchases
    description: The delegated shopper's purchase history.
paths:
  /v1/agent/me:
    get:
      tags:
        - Agent identity
      summary: Get the current agent grant
      description: >-
        Return the authenticated agent grant with its shopper reference,
        effective scopes and whether new purchases are currently enabled.
        Requires an agent credential issued by `POST /v1/agent-grants`; an
        expired, revoked or invalid credential returns `401`.
      operationId: agent_me_v1_agent_me_get
      parameters:
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          content:
            application/json:
              example:
                app_id: app_01M8P0A3C5E7G9J1K3M5N7P9Q1
                environment: sandbox
                expires_at: '2026-11-30T10:00:00+00:00'
                id: agt_01M8P0D2F4H6K8M0N2Q4S6V8X0
                new_work_enabled: true
                oauth_client_id: partner-shopping-agent
                oauth_subject: auth-subject-1042
                requires_quote_approval: true
                scopes:
                  - cart:write
                  - catalog:read
                  - checkout:write
                  - orders:read
                shopper_ref: shopper-1042
                status: active
                tenant_id: ten_01M8P0A1B2C3D4E5F6G7H8J9K0
              schema:
                $ref: '#/components/schemas/AgentIdentity'
          description: The authenticated agent grant and its effective permissions.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: Missing, expired or invalid credentials (`unauthorized`).
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: >-
            The credential is valid but lacks the required scope, role,
            environment or ownership for this resource (`forbidden` or a more
            specific code).
        '422':
          content:
            application/json:
              schema:
                properties:
                  error:
                    properties:
                      code:
                        type: string
                      details:
                        anyOf:
                          - items:
                              properties:
                                loc:
                                  items:
                                    anyOf:
                                      - type: string
                                      - type: integer
                                  type: array
                                msg:
                                  type: string
                                type:
                                  type: string
                              required:
                                - type
                                - loc
                                - msg
                              type: object
                            type: array
                          - type: object
                      message:
                        type: string
                      request_id:
                        type: string
                    required:
                      - code
                      - message
                      - details
                      - request_id
                    type: object
                required:
                  - error
                type: object
          description: Validation Error
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: >-
            A plan allowance, rate limit or resource limit was reached. For
            `rate_limited` (a per-second ceiling) or the monthly API allowance
            (`plan_quota_exceeded`), wait for the `Retry-After` interval before
            retrying. A specific `*_rate_limited` code, such as
            `invitation_email_rate_limited`, is an hourly limit sent without
            `Retry-After`: retry later with bounded backoff. A resource limit
            described by the operation, such as active merchant requests or
            uploads, does not clear by waiting: complete or withdraw existing
            items first. Monthly allowance and cost limits never block servicing
            of accepted orders; per-second ceilings still apply to servicing
            routes.
          headers:
            Retry-After:
              description: >-
                Seconds to wait before retrying, sent only when the monthly API
                allowance is exhausted (`plan_quota_exceeded`) or a per-second
                rate limit (`rate_limited`) is reached; specific
                `*_rate_limited` codes omit it.
              schema:
                type: integer
      security:
        - AgentDelegation: []
components:
  schemas:
    AgentIdentity:
      properties:
        app_id:
          description: App that issued the grant.
          title: App Id
          type: string
        environment:
          description: 'Environment the grant acts in: `sandbox` or `live`.'
          title: Environment
          type: string
        expires_at:
          description: ISO 8601 time after which the credential stops working.
          title: Expires At
          type: string
        id:
          description: Agent grant ID (`agt_` prefix).
          title: Id
          type: string
        new_work_enabled:
          description: Whether the plan currently allows new agent carts and purchases.
          title: New Work Enabled
          type: boolean
        oauth_client_id:
          description: OAuth client ID of the agent.
          title: Oauth Client Id
          type: string
        oauth_subject:
          description: Shopper subject from your OAuth authorization.
          title: Oauth Subject
          type: string
        requires_quote_approval:
          description: >-
            Always true: the shopper's app must approve each quote before
            checkout.
          title: Requires Quote Approval
          type: boolean
        scopes:
          description: >-
            Effective scopes: the delegated scopes still held by the issuing API
            key, sorted.
          items:
            type: string
          title: Scopes
          type: array
        shopper_ref:
          description: Your reference for the shopper the agent acts for.
          title: Shopper Ref
          type: string
        status:
          description: '`active`, or `revoked` once revoked.'
          title: Status
          type: string
        tenant_id:
          description: Workspace the grant belongs to.
          title: Tenant Id
          type: string
      required:
        - id
        - app_id
        - environment
        - shopper_ref
        - oauth_subject
        - oauth_client_id
        - scopes
        - status
        - expires_at
        - tenant_id
        - new_work_enabled
        - requires_quote_approval
      title: AgentIdentity
      type: object
    IgniteErrorEnvelope:
      description: Document the existing error handler without changing its serialization.
      properties:
        error:
          $ref: '#/components/schemas/IgniteErrorDetail'
      required:
        - error
      title: IgniteErrorEnvelope
      type: object
    IgniteErrorDetail:
      description: Stable error fields; details remain open to each domain's JSON evidence.
      properties:
        code:
          title: Code
          type: string
        details:
          title: Details
        message:
          title: Message
          type: string
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Id
      required:
        - code
        - message
        - details
        - request_id
      title: IgniteErrorDetail
      type: object
  securitySchemes:
    AgentDelegation:
      description: Shopper-bound downstream credential; never an MCP OAuth token.
      scheme: bearer
      type: http

````

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