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

# Claim (/v1/claim/verify)

> Code verified; the user was joined to the brand's WorkOS organization and the brand marked claimed.

### Request body

`object`

<ParamField body="email" type="string" required />

<ParamField body="code" type="string" required>
  Magic Auth code from the email
</ParamField>

### Response

`object`

<ResponseField name="ok" type="boolean" required />

<ResponseField name="brand" type="object" required>
  <Expandable title="brand">
    <ResponseField name="slug" type="string" required />

    <ResponseField name="display_name" type="string" required />
  </Expandable>
</ResponseField>

<ResponseField name="login_url" type="string" required>
  Dashboard login URL for the claimed brand
</ResponseField>

### Status codes

| Code  | Meaning                                                                                             |
| ----- | --------------------------------------------------------------------------------------------------- |
| `200` | Code verified; the user was joined to the brand's WorkOS organization and the brand marked claimed. |
| `400` | Validation error                                                                                    |
| `401` | Unauthorized                                                                                        |
| `404` | Not found                                                                                           |
| `429` | Rate limited                                                                                        |
| `500` | Internal error                                                                                      |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.workstream.stateset.com/v1/claim/verify' \
    --header "x-api-key: $STATESET_TEMPORAL_API_KEY" \
    --header 'Content-Type: application/json' \
    --data '{
    "email": "ada.lovelace@example.com",
    "code": "string"
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "ok": true,
    "brand": {
      "slug": "acme-outdoors",
      "display_name": "Ada Lovelace"
    },
    "login_url": "string"
  }
  ```
</ResponseExample>
