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

# Agent registration (auth.md)

> Register a machine client per the auth.md protocol. Two identity types are supported: `anonymous` (returns an API key immediately with pre-claim scopes) and `verified_email` (kicks off OTP, returns only a claim_token). Both flows are user-claimed — the agent and user run the entire ceremony with no agent-provider participation required.



## OpenAPI

````yaml /openapi/spec.json post /v1/auth/agent
openapi: 3.0.0
info:
  title: VidJutsu API
  version: 2026-05-24-2
servers:
  - url: https://api.vidjutsu.ai
    description: Production
    variables: {}
security:
  - BearerAuth: []
tags:
  - name: Assets
  - name: Editor Projects
  - name: Scrape
  - name: Billing
  - name: API Keys
  - name: Usage
  - name: Info
  - name: Pricing
  - name: Subscriptions
  - name: Auth
  - name: Accounts
  - name: Posts
  - name: References
  - name: Upload
  - name: Watch
  - name: Extract
  - name: Transcribe
  - name: Check
  - name: Compliance
  - name: Overlay
  - name: Disclaimer
  - name: Agent
paths:
  /v1/auth/agent:
    post:
      tags:
        - Agent
      summary: Agent registration (auth.md)
      description: >-
        Register a machine client per the auth.md protocol. Two identity types
        are supported: `anonymous` (returns an API key immediately with
        pre-claim scopes) and `verified_email` (kicks off OTP, returns only a
        claim_token). Both flows are user-claimed — the agent and user run the
        entire ceremony with no agent-provider participation required.
      operationId: signupAgent
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentSignupBody'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentSignupResponse'
      security:
        - {}
components:
  schemas:
    AgentSignupBody:
      anyOf:
        - $ref: '#/components/schemas/AgentSignupAnonymousBody'
        - $ref: '#/components/schemas/AgentSignupVerifiedEmailBody'
    AgentSignupResponse:
      type: object
      required:
        - registration_id
        - registration_type
      properties:
        registration_id:
          type: string
          description: Server-generated registration id (rgn_...).
        registration_type:
          type: string
          enum:
            - anonymous
            - email-verification
          description: How the registration was initiated.
        credential_type:
          type: string
          enum:
            - api_key
          description: >-
            Credential type returned, when issued immediately. Omitted on flows
            that require claim_token first.
        credential:
          type: string
          description: >-
            Live credential (API key) issued by the server, when one is issued
            immediately.
        credential_expires:
          type: integer
          format: int64
          description: >-
            Unix epoch ms when the credential expires, or null/undefined for
            non-expiring keys.
        scopes:
          type: array
          items:
            type: string
          description: Scopes the credential is authorized for at issue time.
        post_claim_scopes:
          type: array
          items:
            type: string
          description: Scopes that will be added after the claim flow completes.
        claim_url:
          type: string
          description: >-
            URL the agent should direct the principal to in order to complete
            claim/verification.
        claim_token:
          type: string
          description: Opaque token used to complete the claim flow.
        claim_token_expires:
          type: integer
          format: int64
          description: Unix epoch ms when the claim_token expires.
    AgentSignupAnonymousBody:
      type: object
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - anonymous
        requested_credential_type:
          type: string
          enum:
            - api_key
          description: Requested credential type. Currently only api_key is supported.
    AgentSignupVerifiedEmailBody:
      type: object
      required:
        - type
        - assertion_type
        - assertion
      properties:
        type:
          type: string
          enum:
            - identity_assertion
        assertion_type:
          type: string
          enum:
            - verified_email
        assertion:
          type: string
          description: Email address the agent asserts on behalf of the principal.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````