GET https://op-sandbox.paymaya.com/profile
This API endpoint requires Bearer Authentication , which relies on the Bearer Token (
access_token) generated using the client_credentials grant type. You must provide this token as part of the Authorization header.
--header Authorization: Bearer <access_token>
Recipes
📖
Get Customer Profile in Maya Mini App
Open Recipe
Technical Guide:
Related Guide:
Request Payload
Request Header
| Attribute | Type | Format | Description |
|---|---|---|---|
Content-Type REQUIRED | string | application/json | Specifies the media type of the request |
Request-Reference-No REQUIRED | string | UUIDv4 | Unique reference identifier for tracking the request |
| Authorization REQUIRED | string | JWS | The Bearer Token (access_token) generated by Maya during Bearer Authentication client_credentials grant typeExample: Bearer {access_token} |
| X-Authorization REQUIRED | string | JWE | The Customer Access Token (accessToken); a valid customer access token obtained from Maya through either your session URL |
Response Payload
Response Body
| Attribute | Type | Format | Description |
|---|---|---|---|
data REQUIRED | string | JWE | This encrypted profile data is a JSON Web Signature (JWS) in a JSON Web Encryption (JWE); Some documents refer to it as nested JSON Web Token (JWT) |
