Get Profile via Maya Mini App

GET https://op-sandbox.paymaya.com/profile


This API endpoint uses Bearer Authentication, which relies on the Client Credentials Token (access_token) generated during OAuth 2.0 Authentication using the client_credentials grant type. You must provide this token as part of the Authorization header.

--header Authorization: Bearer <access_token>

Recipes


Technical Guide:

Related Guide:



Request Payload

Request Header

AttributeTypeFormatDescription
Content-Type REQUIREDstringapplication/jsonSpecifies the media type of the request
Request-Reference-No REQUIREDstringUUIDv4Unique reference identifier for tracking the request
Authorization REQUIREDstringJWSThe Client Credentials Token (access_token) generated by Maya during OAuth 2.0 Authentication using the client_credentials grant type

Example: Bearer {access_token}
X-Authorization REQUIREDstringJWEThe Customer Access Token (accessToken); a valid customer access token obtained from Maya through either your session URL or acquired by refreshing the tokens , whichever is the most recent or valid value

Response Payload

Response Body

AttributeTypeFormatDescription
data REQUIREDstringJWEThis 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)