---
title: "Poll CLI Signup Token"
method: GET
path: "/sign_up/{cli_token}"
tags: ["Sign Up"]
---

# Poll CLI Signup Token

`GET /sign_up/{cli_token}`

## Request

- Base URL: `https://api.addresszen.com/v1`
- URL: `https://api.addresszen.com/v1/sign_up/{cli_token}`
- Auth: none declared

Returns the account credentials for a minted `cli_token` once signup has completed, and `202 Accepted` until then. The CLI calls this endpoint repeatedly after sending the user to the `signup_url` returned by `POST /sign_up`.

- `202 Accepted`. The accounts service has not propagated the user yet, or has propagated the user but not minted the first API key. Keep polling. An unknown token also returns `202`, because the API does not record a token at mint time, so the CLI must set its own polling deadline.
- `200 OK`. The user and first API key exist. The API returns the credentials once. Later polls return `410 Gone`.
- `410 Gone`. The token has expired or has already been claimed.

## Path parameters

- `cli_token` string, required

## Response `200`

Credentials ready

- object
  - `code` integer, required
  - `message` string, required
  - `result` object, required
    - `user_token` string, required: User-level token used to manage account resources via the api.
    - `test_api_key` string, required: Initial test API key for the account.
    - `user_id` string, required: Internal api user id.

## Other responses

- `202`: Pending, keep polling
- `410`: Signup token expired or already claimed
- `default`: Error

---

[API](https://skmtc.dev/addresszen/apis/api-reference.md) · [All operations](https://skmtc.dev/addresszen/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc.dev/addresszen/apis/api-reference/revisions/cac119db15c0?raw)
