Authenticate with client key, secret, and user credentials
POST/v1/device/auth/login
Creates an auth token for a client based on the provided client key, secret, and user credentials.
Request
- application/json
Body
required
The client key, client secret, user credentials, and device ID.
clientKey stringrequired
The client key associated with the organization and project.
clientSecret stringrequired
The client secret associated with the client key.
userName stringrequired
The username.
password stringrequired
The user's password.
Responses
- 201
- 400
- 401
- 500
Auth token created successfully.
- application/json
- Schema
- Example (from schema)
Schema
user objectrequired
id stringrequired
email stringrequired
name stringrequired
image stringrequired
backendTokens objectrequired
authToken stringrequired
refreshToken stringrequired
{
"user": {
"id": "string",
"email": "string",
"name": "string",
"image": "string"
},
"backendTokens": {
"authToken": "string",
"refreshToken": "string"
}
}
Bad Request. Missing or invalid request body.
Unauthorized. Invalid client key, client secret, or user credentials.
Internal Server Error.
Loading...