Auth

Token

post

Login using your Context Data user login and generate your token

Body
usernamestring · max: 150Required

Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.

passwordstringRequired
Responses
200
OK
post
POST /api/auth/token HTTP/1.1
Host: sapphire.contextdata.ai
Content-Type: application/json
Accept: */*
Content-Length: 37

{
  "username": "text",
  "password": "text"
}
200

OK

No content

Logout

delete
Authorizations
Responses
204
No Content
delete
DELETE /api/auth/ HTTP/1.1
Host: sapphire.contextdata.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
204

No Content

No content

Last updated