cURL
curl --request POST \ --url https://api.quackai.com/api/v1/login/creds \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data 'grant_type=<string>' \ --data 'username=<string>' \ --data 'password=<string>' \ --data scope= \ --data 'client_id=<string>' \ --data 'client_secret=<string>'
{ "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.423fgFGTfttrvU6D1k7vF92hH5vaJHCGFYd8E", "token_type": "bearer" }
This API follows the OAuth 2.0 specification.
If the credentials are valid, creates a new access token.
By default, the token expires after 1 year.
Successful Response
The response is of type object.
object
Was this page helpful?