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

# Add a device

> Add a device to a public DID record.

Add a device to a public DID record.

## Request

<ParamField path="did" type="string" required>
  The DID to update.
</ParamField>

<ParamField body="did" type="string" required>
  The DID to update. It must match the path.
</ParamField>

<ParamField body="device_id" type="string" required>
  The device identifier.
</ParamField>

<RequestExample>
  ```bash Request theme={null}
  curl --request POST \
    --url "https://directory.example.com/dids/did%3Atalaria%3A1111111111111111111111/devices" \
    --header "Content-Type: application/json" \
    --data '{
    "did": "did:talaria:1111111111111111111111",
    "device_id": "mobile-01"
  }'
  ```
</RequestExample>

## Response

<ResponseField name="status" type="string" required>
  The submission status.
</ResponseField>

<ResponseField name="did" type="string" required>
  The DID affected by the request.
</ResponseField>

<ResponseField name="extrinsic" type="string" required>
  The public operation name.
</ResponseField>

<ResponseField name="tx_hash" type="string" required>
  The submitted transaction hash.
</ResponseField>

<ResponseField name="message" type="string" required>
  A human-readable submission result.
</ResponseField>

<ResponseExample>
  ```json 202 Response theme={null}
  {
    "status": "accepted",
    "did": "did:talaria:1111111111111111111111",
    "extrinsic": "add_device",
    "tx_hash": "<transaction-hash>",
    "message": "Chain extrinsic submitted"
  }
  ```
</ResponseExample>

<Note>
  `202 Accepted` means the Directory accepted the request for processing. It does not confirm final settlement.
</Note>
