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

# Register a sign-in key

> The public half of a P-256 key the agent signs with itself. It then answers sign-ins by fetching a challenge from `{issuer host}/id/challenge` and posting the ES256 signature to `/id/sign-ins/{id}/assert`. The key may share the owner when the registering token has identity:share_owner. Needs identity:sign_in.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/sign-ins/keys
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/sign-ins/keys:
    post:
      tags:
        - Sign-in
      summary: Register a sign-in key
      description: >-
        The public half of a P-256 key the agent signs with itself. It then
        answers sign-ins by fetching a challenge from `{issuer
        host}/id/challenge` and posting the ES256 signature to
        `/id/sign-ins/{id}/assert`. The key may share the owner when the
        registering token has identity:share_owner. Needs identity:sign_in.
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                public_jwk:
                  additionalProperties: false
                  description: The public half of a P-256 key as a JWK
                  properties:
                    kty:
                      enum:
                        - EC
                      type: string
                    crv:
                      enum:
                        - P-256
                      type: string
                    x:
                      maxLength: 43
                      minLength: 43
                      type: string
                    'y':
                      maxLength: 43
                      minLength: 43
                      type: string
                  required:
                    - kty
                    - crv
                    - x
                    - 'y'
                  type: object
                name:
                  description: Where the private key lives, for the dashboard
                  maxLength: 80
                  type: string
              required:
                - public_jwk
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  key:
                    additionalProperties: false
                    properties:
                      id:
                        description: The kid the key signs with
                        type: string
                      source:
                        enum:
                          - browser
                          - api
                        type: string
                      name:
                        nullable: true
                        type: string
                      can_share_owner:
                        type: boolean
                      user_agent:
                        nullable: true
                        type: string
                      created_at:
                        format: date-time
                        type: string
                      last_used_at:
                        format: date-time
                        nullable: true
                        type: string
                      expires_at:
                        description: Extended on every use; 30 days without use
                        format: date-time
                        type: string
                    required:
                      - id
                      - source
                      - name
                      - can_share_owner
                      - user_agent
                      - created_at
                      - last_used_at
                      - expires_at
                    type: object
                required:
                  - key
                type: object
          description: Key
        '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.