Paymob Authentication API

The Authentication API from Paymob — 3 operation(s) for authentication.

GitHub OpenAPI

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /api/auth/tokens Get a short-lived auth token for the accept API · Authenticate Merchant #
Ask an LLM
“How do I get an auth token for the accept API with my API key?”
“How long does an accept API auth token stay valid?”
Tell an agent
Exchange my accept API key for an auth token.
Get a short-lived accept API auth token.
POST /api/auth/token/ Generate an OAuth2 access token for payouts · Generate Access Token #
Ask an LLM
“How do I generate an OAuth2 access token for the payouts API?”
“What credentials do I need to generate a payouts access token?”
Tell an agent
Generate a payouts access token with grant type {grant_type}, username {username}, password {password}, client id {client_id} and secret {client_secret}.
Log in to the payouts API and return a new access token.
POST /api/auth/token/refresh/ Refresh an expired payouts access token · Refresh Access Token #
Ask an LLM
“How do I refresh an expired payouts access token?”
“Can I renew a payouts token with a refresh token?”
Tell an agent
Refresh my payouts access token using refresh token {refresh_token}.
Exchange the payouts refresh token for a new access token.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/paymob:paymob-authentication-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

paymob-authentication-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Paymob Authentication API
  version: '1.0'
  description: 'Operations tagged Authentication across 2 of this provider''s published API definitions: paymob-accept-api-openapi.yml, paymob-payouts-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://accept.paymob.com
  description: Egypt production
- url: https://ksa.paymob.com
  description: Saudi Arabia production
- url: https://uae.paymob.com
  description: UAE production
- url: https://oman.paymob.com
  description: Oman production
- url: https://pakistan.paymob.com
  description: Pakistan production
- url: https://payouts.paymobsolutions.com
  description: Production
- url: https://stg-payouts.paymobsolutions.com
  description: Staging
security:
- BearerAuth: []
tags:
- name: Authentication
paths:
  /api/auth/tokens:
    post:
      summary: Authenticate Merchant
      operationId: createAuthToken
      tags:
      - Authentication
      description: Exchange the merchant API key for a short-lived auth_token (60 minutes).
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - api_key
              properties:
                api_key:
                  type: string
      responses:
        '201':
          description: Token created
          content:
            application/json:
              schema:
                type: object
                properties:
                  token:
                    type: string
                  profile:
                    type: object
                    additionalProperties: true
    servers:
    - url: https://accept.paymob.com
      description: Egypt production
    - url: https://ksa.paymob.com
      description: Saudi Arabia production
    - url: https://uae.paymob.com
      description: UAE production
    - url: https://oman.paymob.com
      description: Oman production
    - url: https://pakistan.paymob.com
      description: Pakistan production
  /api/auth/token/:
    post:
      summary: Generate Access Token
      operationId: generatePayoutsToken
      tags:
      - Authentication
      description: Generate an OAuth2 access token. Token must be refreshed every 60 minutes.
      security: []
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - username
              - password
              - grant_type
              - client_id
              - client_secret
              properties:
                grant_type:
                  type: string
                  enum:
                  - password
                username:
                  type: string
                password:
                  type: string
                client_id:
                  type: string
                client_secret:
                  type: string
      responses:
        '200':
          description: Token issued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Token'
    servers:
    - url: https://payouts.paymobsolutions.com
      description: Production
    - url: https://stg-payouts.paymobsolutions.com
      description: Staging
  /api/auth/token/refresh/:
    post:
      summary: Refresh Access Token
      operationId: refreshPayoutsToken
      tags:
      - Authentication
      security: []
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - refresh_token
              - grant_type
              - client_id
              - client_secret
              properties:
                grant_type:
                  type: string
                  enum:
                  - refresh_token
                refresh_token:
                  type: string
                client_id:
                  type: string
                client_secret:
                  type: string
      responses:
        '200':
          description: Token refreshed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Token'
    servers:
    - url: https://payouts.paymobsolutions.com
      description: Production
    - url: https://stg-payouts.paymobsolutions.com
      description: Staging
components:
  schemas:
    Token:
      type: object
      properties:
        access_token:
          type: string
        refresh_token:
          type: string
        expires_in:
          type: integer
        token_type:
          type: string
        scope:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Bearer auth_token from /api/auth/tokens (60-minute TTL).
x-refined-from:
- paymob-accept-api-openapi.yml
- paymob-payouts-api-openapi.yml