auth_token_create
POST
/auth-token/
const url = 'https://example.com/auth-token/';const options = { method: 'POST', headers: { Authorization: '<Authorization>', 'Content-Type': 'application/x-www-form-urlencoded' }, body: new URLSearchParams({username: 'example', password: 'example'})};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/auth-token/ \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data username=example \ --data password=exampleAuthorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
username
required
string
password
required
string
Example generated
username=example&password=exampleobject
username
required
string
password
required
string
object
username
required
string
password
required
string
Example generated
{ "username": "example", "password": "example"}Responses
Section titled “Responses”Media typeapplication/json
object
token
required
string
Example generated
{}