Can you clarify which headers (especially for authorization) should I include in each API request call?
For API requests, you need to include the following headers:
- Authorization Header:
- For Basic Authentication, use 'Basic ’ followed by the Base64 encoded string of your ‘client_id’ and ‘client_secret’.
- For Bearer Authentication, use 'Bearer ’ followed by the Bearer Token obtained via OAuth 2.0 Client Credentials Grant.
- Content-Type: Set this to ‘application/x-www-form-urlencoded’ or ‘application/json’ depending on the API specification.
- Request-Reference-No: A unique reference number for the request.
It is recommended to include a ‘Latitude’ and ‘Longitude’ header in decimal degrees (DD) format for geo-tagging requests. Always refer to the specific API documentation for the correct headers and their values.
For Sandbox concerns and other technical implementation inquiries, please get in touch with us via:
- Sandbox Health Page: Check real-time service status updates.
- Maya Developer Hub Service Desk: File
a ticket in Sandbox.
To Know More:
We value your input and would love to hear your insights. Please submit you feedback here.
Hello @Peter.West, could you also share what Maya solution you are implementing?