Authenticate
Production
https://{{subdomain}}.daftra.com/api2
Production
https://{{subdomain}}.daftra.com/api2
POST
https://{{subdomain}}.daftra.com/api2
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://.daftra.com/api2/v2/oauth/token' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--form 'client_secret="jCfy6cMh1X6NTxR3OWLuvEFa0si5uZKr05UeoAEs"' \
--form 'client_id="1"' \
--form 'grant_type="password"' \
--form 'username="<<email>>"' \
--form 'password="<<password>>"'
Response Response Example
{}
Request
Header Params
Accept
stringÂ
optional
Default:
application/json
Content-Type
stringÂ
optional
Default:
application/json
Authorization
stringÂ
optional
Default:
Bearer {{access_token}}
apikey
stringÂ
deprecated
Default:
{{apikey}}
Body Params multipart/form-data
client_secret
stringÂ
required
Example:
jCfy6cMh1X6NTxR3OWLuvEFa0si5uZKr05UeoAEs
client_id
stringÂ
required
Example:
1
grant_type
stringÂ
required
Example:
password
username
stringÂ
required
Example:
<<email>>
password
stringÂ
required
Example:
<<password>>