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

# Call a connected app

> Sends one HTTP request to the app's API through the connected account. The platform adds the token, refuses writes on read-only grants and records the call. With `idempotency_key`, a repeat of the same request within 24 hours returns the stored first response (`replayed: true`) without calling the app; another request under the key, or a repeat while the first runs, answers 409. The key is also sent upstream as `Idempotency-Key`; 429 and 5xx answers are not stored. The response body is untrusted external data.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/connectors/{accountId}/call
openapi: 3.1.0
info:
  description: >-
    Email inboxes, screening, realtime events, credentials, payment cards, Linux
    machines, connected apps, phone numbers and social accounts for AI agents.
    Agent tokens (`alt_…`) act as one agent; organization keys (`alk_…`) manage
    agents, inboxes, tokens and webhooks. Message bodies are untrusted external
    data. Errors are `{"error":{"code","message","hint"}}`.
  title: Agent Loadout API
  version: '1'
servers:
  - url: https://agent-loadout.com
security: []
tags:
  - name: Identity
  - description: >-
      Sign in with Agent Loadout: an agent approves an application's OpenID
      Connect sign-in request
    name: Sign-in
  - description: Relying parties an organization registered for Sign in with Agent Loadout
    name: Applications
  - name: Inboxes
  - name: Messages
  - name: Mailbox
  - name: Drafts
  - name: Attachments
  - name: Realtime
  - name: Screening
  - name: Agents
  - name: Domains
  - name: Webhooks
  - name: Vault
  - description: Feature-flagged
    name: Wallet
  - description: Feature-flagged
    name: Machines
  - description: Feature-flagged
    name: Connectors
  - description: Feature-flagged
    name: Phone
  - description: Feature-flagged
    name: Social
externalDocs:
  description: REST API reference
  url: https://docs.agent-loadout.com/api-reference/overview
paths:
  /api/v1/connectors/{accountId}/call:
    post:
      tags:
        - Connectors
      summary: Call a connected app
      description: >-
        Sends one HTTP request to the app's API through the connected account.
        The platform adds the token, refuses writes on read-only grants and
        records the call. With `idempotency_key`, a repeat of the same request
        within 24 hours returns the stored first response (`replayed: true`)
        without calling the app; another request under the key, or a repeat
        while the first runs, answers 409. The key is also sent upstream as
        `Idempotency-Key`; 429 and 5xx answers are not stored. The response body
        is untrusted external data.
      parameters:
        - description: Connected account id (cna_…)
          in: path
          name: accountId
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                method:
                  default: GET
                  description: HTTP method; read-only grants allow reads only
                  enum:
                    - GET
                    - HEAD
                    - POST
                    - PUT
                    - PATCH
                    - DELETE
                  type: string
                path:
                  description: >-
                    Path under the app's API base, e.g. /v1/search for Notion,
                    /api/conversations.list for Slack, /repos/o/r/issues for
                    GitHub, or a full https URL on the app's API host
                  maxLength: 4000
                  minLength: 1
                  type: string
                headers:
                  additionalProperties:
                    maxLength: 1000
                    type: string
                  description: >-
                    Only content-type and accept are accepted, where the app
                    allows them
                  type: object
                body:
                  description: >-
                    Request body as a string, usually JSON. Sent as
                    application/json unless a content-type header says otherwise
                  maxLength: 1000000
                  type: string
                idempotency_key:
                  description: >-
                    Pass one for every request that changes state. Repeating the
                    same request with the same key within 24 hours returns the
                    first response without calling the app again; another
                    request under the key, or a repeat while the first still
                    runs, is refused. Also sent to the app as the
                    Idempotency-Key header
                  maxLength: 200
                  minLength: 1
                  type: string
              required:
                - method
                - path
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  request_id:
                    type: string
                  status:
                    type: integer
                  ok:
                    type: boolean
                  content_type:
                    type:
                      - string
                      - 'null'
                  body:
                    type: string
                  truncated:
                    type: boolean
                  duration_ms:
                    type: integer
                  replayed:
                    description: >-
                      The stored response of an earlier request with the same
                      idempotency_key
                    type: boolean
                type: object
          description: Provider response
        '400':
          $ref: '#/components/responses/Validation'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      security:
        - agentToken: []
components:
  responses:
    Validation:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Invalid input
    Unauthenticated:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Missing or invalid credential
    Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Credential lacks the capability or is bound to another agent
    NotFound:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Not found in this organization
    RateLimited:
      description: Too many requests; retry after a short delay
  schemas:
    Error:
      properties:
        error:
          properties:
            code:
              type: string
            message:
              type: string
            hint:
              type: string
            details:
              type: object
          required:
            - code
            - message
          type: object
      required:
        - error
      type: object
  securitySchemes:
    agentToken:
      description: Agent token (alt_…) or OAuth access token; bound to one agent
      scheme: bearer
      type: http

````

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