Custom authentication
This page explains how to act on behalf of other users with logintokens and refreshtokens.
x-api-key: mJE5v1zHs.... logintoken: r9BPAFW.....
post
Body
emailstring · min: 1Required
Email of the user.
passwordstring · min: 1Required
Password matching the user email.
Responses
200
OK
responsestatusstring · enumOptionalPossible values:
erroridstring · nullableOptional
errormessagestring · nullableOptional
errorcodeinteger · int32 · nullableRead-onlyOptional
Numeric representation of the responsestatus field.
400
Bad Request
401
Unauthorized
429
Too Many Requests
post
/auth/loginpost
Query parameters
allDevicesbooleanOptional
When set to true all the user's logintokens and refreshtokens will be destroyed.
Header parameters
logintokenstringOptional
Responses
200
OK
responsestatusstring · enumOptionalPossible values:
erroridstring · nullableOptional
errormessagestring · nullableOptional
dataany · nullableOptional
This field contains endpoint-sepcific response data.
errorcodeinteger · int32 · nullableRead-onlyOptional
Numeric representation of the responsestatus field.
401
Unauthorized
post
/auth/logoutpost
Body
refreshtokenstringOptional
A one-time-use refreshtoken obtained from the login endpoint.
Responses
200
OK
responsestatusstring · enumOptionalPossible values:
erroridstring · nullableOptional
errormessagestring · nullableOptional
errorcodeinteger · int32 · nullableRead-onlyOptional
Numeric representation of the responsestatus field.
400
Bad Request
post
/auth/refreshtokenLast updated
Was this helpful?
