Authentication

To make API calls on PEZESHA, you’ll have to pass a Bearer Token To generate a token you simply

  1. Request credentials from PEZESHA (Client ID, Client Name & Client Secret)

  2. Make API call to {{BASE_URL}}/oauth/token passing in your API Credential. Doesn't have mfi prefix

  3. You'll be authenticated and receive a token to process further API calls

Authorization: Bearer {token}

AUTH Token

POST {{https://api.pezesha.com or https://dev.api.pezesha.com}}/oauth/token

Use this endpoint to generate an JWT to be used for authentication in further API calls

Headers

NameTypeDescription

Content-Type

string

Default (application/x-www-form-urlencoded)

Request Body

NameTypeDescription

grant_type

string

Default (client_credentials)

provider

string

Default (users)

client_secret

string

Provided by Pezesha

client_id

string

Provided by Pezesha

{
    "token_type": "Bearer",
    "expires_in": 86400,
    "access_token": "ACCESS_TOKEN_HERE"
}

Last updated