Skip to content

Testing

Get Test Access Token

Request

Generate access token for testing protected endpoints. Available in local and development environments only.

Bodyapplication/jsonrequired
emailstring, (email)(Email)required

User email address

Example:"basic@test.com"
passwordstring, >= 8 characters(Password)required

User password

Example:"Test1234!"
curl -i -X POST \
  https://docs.vanda-analytics.com/_mock/apis/macro/vanda-msvc-macro/macro/test/token \
  -H 'Content-Type: application/json' \
  -d '{
    "email": "basic@test.com",
    "password": "Test1234!"
  }'

Responses

Token generated successfully

Bodyapplication/json
access_tokenstring(Access Token)required

JWT access token for API authentication

token_typestring(Token Type)

Token type

Default:"Bearer"
expires_ininteger(Expires In)required

Token expiration in seconds

scopestring or null(Scope)
Any of:

Granted scopes

string
Response
{ "access_token": "string", "token_type": "Bearer", "expires_in": 0, "scope": "string" }