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

# Verify the code

> Check the emailed code. Creates your account on first sign-in and returns a new API key, with full rights unless `scopes` says otherwise. A new account has no credits yet: open `checkout_url` to add a card and make your first payment.



## OpenAPI

````yaml /openapi/spec.json post /auth/verify
openapi: 3.1.0
info:
  title: VidJutsu Cloud API
  version: '2026-11-03'
  description: >-
    Video editing built for agents: upload takes, edit a timeline with history,
    and render it on cloud machines. The same operations are MCP tools at
    https://api.vidjutsu.ai/mcp.
servers:
  - url: https://api.vidjutsu.ai
security:
  - bearer: []
tags:
  - name: Sign-up and sign-in
  - name: Account
  - name: API keys
  - name: Billing
  - name: Media
  - name: Uploads
  - name: Projects
  - name: History
  - name: Shot list
  - name: Layouts
  - name: Audio
  - name: Look and check
  - name: Motion graphics
  - name: Live updates
  - name: Comments
  - name: Renders
  - name: Publishing
  - name: Status
paths:
  /auth/verify:
    post:
      tags:
        - Sign-up and sign-in
      summary: Verify the code
      description: >-
        Check the emailed code. Creates your account on first sign-in and
        returns a new API key, with full rights unless `scopes` says otherwise.
        A new account has no credits yet: open `checkout_url` to add a card and
        make your first payment.
      operationId: sign_in_verify
      parameters:
        - name: VidJutsu-Version
          in: header
          required: false
          description: >-
            The API version you wrote your integration against, a date. Without
            it you get the latest version. The current version is `2026-11-03`.
            See https://docs.vidjutsu.ai/api-reference/introduction#versioning.
          schema:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
            example: '2026-11-03'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SignInVerify'
      responses:
        '201':
          description: Signed in, with a new API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignedIn'
        default:
          description: 400 invalid_request (wrong or expired code), 429 rate_limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  schemas:
    SignInVerify:
      type: object
      required:
        - attempt
        - code
      properties:
        attempt:
          type: string
          description: From POST /auth/email.
        code:
          type: string
          description: The code from the email.
        name:
          type: string
          maxLength: 64
          description: A name for the API key this creates.
        scopes:
          $ref: '#/components/schemas/KeyScopes'
    SignedIn:
      type: object
      required:
        - api_key
        - key_id
        - account_id
        - status
      properties:
        api_key:
          type: string
          description: >-
            `vj_live_...`. Shown once: keep it. Send it as `Authorization:
            Bearer <api_key>`.
        key_id:
          type: string
        account_id:
          type: string
        scopes:
          type: array
          items:
            $ref: '#/components/schemas/KeyScope'
          description: The new key's optional rights.
        status:
          $ref: '#/components/schemas/AccountStatus'
        checkout_url:
          type: string
          description: >-
            When `status` is `no_plan`: a Stripe Checkout link to add a card and
            start the monthly plan.
        note:
          type: string
    Error:
      type: object
      description: >-
        Every error has a stable `code` and a `message`. Billing and limit
        errors add the fields that tell you how to fix them. See
        https://docs.vidjutsu.ai/errors.
      required:
        - code
        - message
        - request_id
      properties:
        code:
          type: string
          enum:
            - unauthenticated
            - forbidden
            - no_account
            - payment_required
            - upgrade_required
            - plan_limit
            - rate_limited
            - not_found
            - invalid_request
            - conflict
            - payload_too_large
            - upstream_error
            - service_unavailable
          description: Stable error code.
        message:
          type: string
          description: What went wrong, in plain words.
        reason:
          type: string
          description: >-
            Finer cause, for example `no_plan`, `insufficient_credits`,
            `payment_failed`, `spend_limit`, `stale_head`.
        checkout_url:
          type: string
          description: >-
            402 `no_plan`: a Stripe Checkout link to add a card and make your
            first payment.
        top_up_url:
          type: string
          description: >-
            402 `insufficient_credits` or `payment_failed`: a Stripe link to add
            credits to your wallet.
        upgrade_url:
          type: string
          description: >-
            402 `upgrade_required`: a link to move to a plan that has the
            feature.
        media_deletes_at:
          type: string
          format: date-time
          description: >-
            402 `payment_failed` (wallet below zero): when your stored media
            will be deleted unless you top up.
        contact_url:
          type: string
          description: '403 plan_limit: where to ask about Enterprise.'
        retry_after_seconds:
          type: integer
          description: '429: when to try again (also sent as a Retry-After header).'
        latest_version:
          type: string
          description: '400 unknown_version: the newest API version.'
        request_id:
          type: string
          description: >-
            Your Idempotency-Key, or a generated id. Quote it when you contact
            support.
    KeyScopes:
      type: array
      items:
        $ref: '#/components/schemas/KeyScope'
      description: >-
        Optional rights for the new key. Leave it out for both; `[]` for
        neither. A key can't make a key with rights it doesn't have.
    KeyScope:
      type: string
      enum:
        - billing
        - keys
      description: >-
        `billing`: change auto-reload and the spend limit, and open the billing
        portal. `keys`: create and revoke API keys. Every key can work on
        projects.
    AccountStatus:
      type: string
      enum:
        - no_plan
        - active
        - payment_failed
      description: >-
        `no_plan`: make your first payment (POST /billing/checkout) to start
        work. `active`: everything works. `payment_failed`: your wallet is below
        zero; reads work, new work is paused until you top up (POST
        /billing/top-up).
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        A VidJutsu API key (`vj_live_...`) from POST /auth/verify or POST /keys,
        or an OAuth access token (MCP clients).

````

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