Auth

Get Token

POST
Hit the auth endpoint to get a bearer token

Request

This endpoint expects an object.
client_id
stringRequired
client_secret
stringRequired
audience
"sayari.com"Required
grant_type
"client_credentials"Required

Response

This endpoint returns an object
access_token
string
The bearer token you will pass in to subsequent API calls to authenticate.
expires_in
integer
Tells you how long (in seconds) until your bearer token expires.
token_type
string
Will always be "Bearer"
POST
1curl -X POST https://api.sayari.com/oauth/token \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "client_id": "your client_id here",
6 "client_secret": "your client_secret here",
7 "audience": "sayari.com",
8 "grant_type": "client_credentials"
9}'
Response
1{
2 "access_token": "sk_test_4eC39HqLyjWDarjtT1zdp7dc",
3 "expires_in": 86400,
4 "token_type": "Bearer"
5}