Sign Up

Poll CLI Signup Token

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

Path parameters

cli_tokenstring required

The token returned by POST /sign_up.

Response

Credentials ready

codeinteger required
messagestring required

Example response

{
  "code": 2000,
  "message": "Success"
}

Changes

No recorded changes to this operation across all 1 revision of this API.