--- swagger: "2.0" info: x-ibm-name: partner-h2h-authentication-api title: Partner H2H Authentication API version: 1.0.0 contact: name: API developer email: apideveloper@rakbank.ae description: Server-side client applications of H2H Partners should use this API to generate an Access Token for a specific set of scopes. name: "" schemes: - https host: testapi.rakbank.ae basePath: /v1/h2h_auth paths: /token: post: responses: 200: description: 200 OK schema: $ref: '#/definitions/access_token_response' 401: description: Unauthorized schema: $ref: '#/definitions/error_response' 403: description: Forbidden schema: $ref: '#/definitions/error_response' parameters: - name: access_token_request required: true in: body schema: $ref: '#/definitions/access_token_request' description: Access Token Request summary: Request Access Tokens description: This endpoint allows requesting an access token operationId: GenerateToken parameters: - $ref: '#/parameters/MsgId' consumes: - application/json produces: - application/json securityDefinitions: clientSecretHeader: type: apiKey description: "" in: header name: X-IBM-Client-Secret clientIdHeader: type: apiKey in: header name: X-IBM-Client-Id security: - clientIdHeader: [] clientSecretHeader: [] x-ibm-configuration: testable: true enforced: true phase: realized definitions: access_token_request: description: request for access token type: object properties: grant_type: type: string enum: - client_credentials description: Type of grant. Valid values are "client_credentials" required: - grant_type additionalProperties: false access_token_response: type: object additionalProperties: false required: - token_type - access_token - expires_in - scope properties: token_type: enum: - bearer description: The token type example: bearer access_token: type: string minLength: 1 maxLength: 5000 description: The access token expires_in: type: integer description: The expiry time in seconds scope: type: string minLength: 1 maxLength: 500 description: Scope that was requested error_response: properties: status: type: string description: HTTP Status response_code: type: string description: API specific error code property: type: string response_message: type: string description: brief type of the error example: "" description: type: string description: detailed description of the error additionalProperties: false required: - response_code - status - response_message description: Response in case of error parameters: MsgId: name: MsgId type: string required: true in: header description: MsgId tags: [] x-ibm-endpoints: - endpointUrl: https://sandboxapi.rakbank.ae/sb/api type: - production - development ...