Syndai Docs

Verify a sign-up code

POST
/api/v1/signup/verify

Trade the mailed code for a new workspace and an API key that expires after 90 days. The key is returned once: the code is spent, and a retry answers code_expired (an address that now has a workspace signs in with npx -y syndai login). Ten wrong codes per mailbox in 24 hours answer attempts_exhausted. No authentication is required.

Request Body

application/json
  1. body
code*string
Length1 <= length <= 16
email*string
Length3 <= length <= 254

Response Body

Document created, URL follows

application/json
  1. response
api_key*string
Formatpassword
app_url*string
customer_id*string
Formatuuid
expires_at*string
Formatdate-time
key_id*string
Formatuuid
Example Request
curl -X POST 'https://api.syndai.ai/api/v1/signup/verify' \  -H 'Content-Type: application/json' \  -d '{  "code": "string",  "email": "string"}'
Example Response
{  "api_key": "pa$$word",  "app_url": "string",  "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",  "expires_at": "2019-08-24T14:15:22Z",  "key_id": "1e779c8a-6786-4c89-b7c3-a6666f5fd6b5"}
Was this page helpful?