> ## 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.

# List shopper agent grants

> Page through agent grants issued for the calling app and environment, oldest first. Pass the returned `next_cursor` as `cursor` to read the next page; credentials are never returned. Requires an API key with `agents:manage`.



## OpenAPI

````yaml /agents-api.json get /v1/agent-grants
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-grants:
    get:
      tags:
        - Grants and approval
      summary: List shopper agent grants
      description: >-
        Page through agent grants issued for the calling app and environment,
        oldest first. Pass the returned `next_cursor` as `cursor` to read the
        next page; credentials are never returned. Requires an API key with
        `agents:manage`.
      operationId: list_grants_v1_agent_grants_get
      parameters:
        - in: query
          name: cursor
          required: false
          schema:
            default: ''
            maxLength: 40
            title: Cursor
            type: string
        - in: query
          name: limit
          required: false
          schema:
            default: 50
            maximum: 100
            minimum: 1
            title: Limit
            type: integer
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: x-ignite-app-id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Ignite-App-Id
      responses:
        '200':
          content:
            application/json:
              example:
                items:
                  - app_id: app_01M8P0A3C5E7G9J1K3M5N7P9Q1
                    environment: sandbox
                    expires_at: '2026-11-30T10:00:00+00:00'
                    id: agt_01M8P0D2F4H6K8M0N2Q4S6V8X0
                    oauth_client_id: partner-shopping-agent
                    oauth_subject: auth-subject-1042
                    scopes:
                      - cart:write
                      - catalog:read
                      - checkout:write
                      - orders:read
                    shopper_ref: shopper-1042
                    status: active
                next_cursor: agt_01M8P0D2F4H6K8M0N2Q4S6V8X0
              schema:
                $ref: '#/components/schemas/AgentGrantPage'
          description: A page of agent grants, without credentials.
        '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:
        - MachineKey: []
        - CustomerOIDC: []
components:
  schemas:
    AgentGrantPage:
      properties:
        items:
          items:
            $ref: '#/components/schemas/AgentGrantView'
          title: Items
          type: array
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: Pass as `cursor` to read the next page; null on the last page.
          title: Next Cursor
      required:
        - items
        - next_cursor
      title: AgentGrantPage
      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
    AgentGrantView:
      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
        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
        scopes:
          description: Scopes delegated to the agent.
          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
      required:
        - id
        - app_id
        - environment
        - shopper_ref
        - oauth_subject
        - oauth_client_id
        - scopes
        - status
        - expires_at
      title: AgentGrantView
      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:
    MachineKey:
      description: Server-side scoped Ignyt API key.
      scheme: bearer
      type: http
    CustomerOIDC:
      bearerFormat: JWT
      description: >-
        Customer access token; current membership, role and app selection are
        enforced. Protected actions use recent email-code verification in the
        configured Sandbox or recent authenticator verification in legacy
        password mode. Available when customer authentication is enabled.
      scheme: bearer
      type: http

````

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