Now that you have a login and password, you can make a request to our authorization endpoint, as detailed below:
Fields with * are required. The others are considered optional.
POST
https://api.pagstar.com/api/v2/identity/partner/login
The access token is valid for 5 years, after which you will need to generate a new token to continue using the APIs.
All requests to the Pagstar API:
Are encrypted, we do not accept requests using the HTTP protocol, only HTTPS.
The data communication format is JSON. Every request with a JSON payload must contain the header Content-Type: application/json
The obtained access token is the token that you need to pass in the header of all subsequent requests.
It should contain the header User-Agent to tell us the name of your company and a contact email. Here is a sample pattern:
Authorization: Bearer {accessToken}
User-Agent: Company X (contato@empresax.com)
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Content-Type*
String
application/json
User-Agent*
String
Company X (contato@empresa.com)
email*
String
Partner registered email to login
access_key*
String
Registered password