> ## Documentation Index
> Fetch the complete documentation index at: https://api.tandapay.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get phone number operator

> Find which network a phone number is on.



## OpenAPI

````yaml POST /api/b2b/utilities/operators/phone
openapi: 3.1.0
info:
  title: Tanda API
  version: 1.0.0
  description: >-
    Collect and send KES payments in Kenya through M-PESA, Airtel Money and bank
    transfer.
servers:
  - url: https://api.tandapay.io
    description: Sandbox and production (your keys decide which)
security:
  - bearerAuth: []
tags:
  - name: Authentication
  - name: Account
  - name: Checkout
  - name: Collections
  - name: Payouts
  - name: Beneficiaries
  - name: Transactions
  - name: Reference data
  - name: Webhooks
paths:
  /api/b2b/utilities/operators/phone:
    post:
      tags:
        - Reference data
      summary: Get phone number operator
      description: >-
        Returns the mobile network for a phone number. Useful for showing the
        right logo or validating a number before charging it.
      operationId: phone-number-operators
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                currency:
                  type: string
                  description: ISO 4217 currency code. Tanda supports `KES`.
                  enum:
                    - KES
                  example: KES
                country:
                  type: string
                  description: ISO 3166-1 alpha-2 country code. Tanda supports `KE`.
                  enum:
                    - KE
                  example: KE
                phoneNumber:
                  type: string
                  description: Phone number in E.164 format.
                  example: '+254712345678'
              required:
                - currency
                - country
                - phoneNumber
            example:
              currency: KES
              country: KE
              phoneNumber: '+254712345678'
      responses:
        '200':
          description: Operator.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: array
                    items:
                      type: string
              example:
                success: true
                data:
                  - safaricom
        '400':
          description: The number's prefix doesn't match a known network.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                message: Unknown network prefix.
                errorCode: E-API-GN-UTL.S-232
        '401':
          description: Missing, invalid or expired bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                message: Unauthorized
components:
  schemas:
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
          description: Human-readable; may change.
        errorCode:
          type: string
          description: Stable code to branch on.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Token from Generate bearer token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.