Skip to content

auth

auth

POST login

POST /auth/login

Body Parameters

{
"username": "string",
"password": "string"
}

Params

NameLocationTypeRequiredDescription
Content-Typeheaderstringyesnone
bodybodyobjectnonone
» usernamebodystringyesnone
» passwordbodystringyesnone

Response Examples

200 Response

{
"record": {
"avatar": "string",
"collectionId": "string",
"collectionName": "string",
"created": "string",
"email": "string",
"emailVisibility": true,
"id": "string",
"language": "string",
"location": {
"lat": 0,
"lon": 0,
"name": "string"
},
"token": "string",
"unit": "string",
"updated": "string",
"username": "string",
"verified": true
},
"token": "string"
}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline
400Bad RequestBad RequestInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» recordobjecttruenonenone
»» avatarstringtruenonenone
»» collectionIdstringtruenonenone
»» collectionNamestringtruenonenone
»» createdstringtruenonenone
»» emailstringtruenonenone
»» emailVisibilitybooleantruenonenone
»» idstringtruenonenone
»» languagestringtruenonenone
»» locationobjecttruenonenone
»»» latnumbertruenonenone
»»» lonnumbertruenonenone
»»» namestringtruenonenone
»» tokenstringtruenonenone
»» unitstringtruenonenone
»» updatedstringtruenonenone
»» usernamestringtruenonenone
»» verifiedbooleantruenonenone
» tokenstringtruenonenone

HTTP Status Code 400

NameTypeRequiredRestrictionsTitledescription
» urlstringtruenonenone
» statusintegertruenonenone
» responseobjecttruenonenone
»» codeintegertruenonenone
»» messagestringtruenonenone
»» dataobjecttruenonenone
» isAbortbooleantruenonenone
» originalErrorobjecttruenonenone
»» urlstringtruenonenone
»» statusintegertruenonenone
»» dataobjecttruenonenone
»»» codeintegertruenonenone
»»» messagestringtruenonenone
»»» dataobjecttruenonenone
» namestringtruenonenone