openapi: 3.2.0 info: description: Interface to the Apigee Cloud MTN-ID userinfo function. version: v1.0 title: MTNID Get Info API servers: - url: https://api.mtn.com/mtn-id security: - ApiKeyAuth: [] tags: - name: getInfo paths: /userinfo: get: operationId: GetUserInfo summary: Gets the Auth0 user info. description: This operation returns information from Auth0, decrypting 'services' if needed tags: - getInfo parameters: - name: mtnid-authorization in: header description: JWT token obtained from Auth0 containing MTN ID user's access token for authorization to access Auth0 tenant required: true schema: type: string responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/madapi_cannonical_response' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/Error401' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/Error500' components: schemas: Error500: properties: statusCode: type: integer description: Status code to indicate authentication failure. example: 500 statusMessage: type: string description: Status message indicating authentication failure. example: Internal Server Error supportMessage: type: string description: Optional message with supporting information. example: Error processing in Apigee Error401: properties: statusCode: type: integer description: Status code to indicate authorisation failure. example: 401 statusMessage: type: string description: Status message indicating authorisation failure. example: Unauthorised supportMessage: type: string description: Optional message with supporting information. example: Please verify x-api-key | Please verify JWT token madapi_cannonical_response: type: object required: - statusCode - statusMessage - supportMessage properties: statusCode: type: string description: This is the MADAPI Canonical Error Code (it is 4 characters long and it is not the HTTP Status Code which is 3 characters long). Back-end system errors are mapped to specific canonical error codes which are returned. example: '0000' statusMessage: type: string description: More details and corrective actions related to the error which can be shown to a client. Map with status from backend response. example: success supportMessage: type: string description: Success Message. Map with description from backend response. example: '' securitySchemes: ApiKeyAuth: type: apiKey name: x-api-key in: header