API SETUP GUIDE - PARTNERS
Call Reveal APIs as a partner
Use this method only if you are an approved partner accessing Reveal data on behalf of a mutual customer.
Prerequisites
REST credentials verify your integration's permissions for a Reveal account. Replace the placeholders below with the values issued for your integration.
| REST CREDENTIALS | Username: {REST_USERNAME}Password: {REST_PASSWORD} |
| API ID | {APP_ID} |
Make an API call
- Encode your REST credentials in the format
Encode your REST credentials
username:passwordusing an approved local tool.
Never enter credentials into public online encoders - Base64 is an encoding scheme, not encryption.
Pass the resulting Base64 string in theAuthorizationheader in Step 2 (e.g.,{BASE64_ENCODED_USERNAME_PASSWORD}). - Send a
Get an authorization token
POSTrequest to the token endpoint using your encoded REST credentials:curl "https://api.us.vzconnect.com/token" \ -H "Authorization: Basic {BASE64_ENCODED_USERNAME_PASSWORD}" \ -H "Content-Type: application/json"
A successful request returns HTTP200and an authorization token.The token is valid for 20 minutes. Request a new token before it expires.
- Follow the relevant API documentation for the request URL, query parameters, and any required request body.
Call API
Include the authorization header in this format:NAME VALUE Authorization Atmosphere atmosphere_APP_Id={APP Id},Bearer {Token}