Authentication

REST

https://api.sandbox.x.architect.co

Get User Token Api Key

post
Body
api_keystringRequired
secretstringRequired
expiration_secondsintegerRequired

Expiration seconds

Responses
200

Successful Response

application/json
post
POST /auth/get_user_token_api_key HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 57

{
  "api_key": "text",
  "secret": "text",
  "expiration_seconds": 1
}
{
  "token": "text"
}

Get User Token

post
Body
usernamestring · min: 1 · max: 50Required

Username

Pattern: ^[-A-Za-z0-9_@.+]+$
passwordstring · min: 1 · max: 50Required

Password

expiration_secondsintegerRequired

Expiration seconds

Responses
200

Successful Response

application/json
post
POST /auth/get_user_token HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 60

{
  "username": "text",
  "password": "text",
  "expiration_seconds": 1
}
{
  "token": "text"
}

Last updated