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

# Claim a unit

> Hands a unit to a recipient address, authorized by the tap session token. `execution:"endstate_relay"` submits the claim for you; `execution:"client_broadcast"` returns a claim payload for you to submit. Poll GET /v1/units/{unit_id}/claims/{claim_id} for status.



## OpenAPI

````yaml /openapi.json post /v1/units/{unit_id}/claims
openapi: 3.1.0
info:
  title: Endstate API
  version: v1
  description: Endstate developer API for chip verification and ownership workflows.
servers:
  - url: https://api2.endstate.io
    description: Production
security: []
paths:
  /v1/units/{unit_id}/claims:
    post:
      tags:
        - Claims
      summary: Claim a unit
      description: >-
        Hands a unit to a recipient address, authorized by the tap session
        token. `execution:"endstate_relay"` submits the claim for you;
        `execution:"client_broadcast"` returns a claim payload for you to
        submit. Poll GET /v1/units/{unit_id}/claims/{claim_id} for status.
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: unit_id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateClaimRequest'
            example:
              to: '0x1111111111111111111111111111111111111111'
              execution: endstate_relay
      responses:
        '201':
          description: The created claim.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Claim'
              example:
                id: 00000000-0000-4000-8000-000000000000
                unit_id: 22222222-2222-4222-8222-222222222222
                to: '0x1111111111111111111111111111111111111111'
                from: '0x2222222222222222222222222222222222222222'
                status: claiming
                created_at: '2026-06-15T12:00:00.000Z'
      security:
        - SessionTokenBearer: []
components:
  schemas:
    CreateClaimRequest:
      type: object
      properties:
        to:
          type: string
          pattern: ^0x[a-fA-F0-9]{40}$
          description: Recipient address.
          example: '0x1111111111111111111111111111111111111111'
        execution:
          type: string
          enum:
            - endstate_relay
            - client_broadcast
          default: endstate_relay
          description: >-
            `endstate_relay` submits the claim for you. `client_broadcast`
            returns a claim payload for you to submit.
          example: endstate_relay
      required:
        - to
      example:
        to: '0x1111111111111111111111111111111111111111'
        execution: endstate_relay
    Claim:
      type: object
      properties:
        id:
          type: string
          format: uuid
        unit_id:
          type: string
          format: uuid
        to:
          type: string
          pattern: ^0x[a-fA-F0-9]{40}$
        from:
          type: string
          pattern: ^0x[a-fA-F0-9]{40}$
        status:
          type: string
          enum:
            - claiming
            - claimed
            - expired
            - failed
        submission:
          type:
            - object
            - 'null'
          properties:
            to:
              type: string
              pattern: ^0x[a-fA-F0-9]{40}$
            data:
              type: string
          required:
            - to
            - data
        created_at:
          type: string
      required:
        - id
        - unit_id
        - to
        - from
        - status
        - created_at
      example:
        id: 00000000-0000-4000-8000-000000000000
        unit_id: 22222222-2222-4222-8222-222222222222
        to: '0x1111111111111111111111111111111111111111'
        from: '0x2222222222222222222222222222222222222222'
        status: claiming
        created_at: '2026-06-15T12:00:00.000Z'
  securitySchemes:
    SessionTokenBearer:
      type: http
      scheme: bearer
      bearerFormat: end_sess
      description: >-
        Use `Authorization: Bearer end_sess_*` for V2 browser session tokens
        (e.g. `end_sess_AbCd_example_token`).

````