> ## 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 user

> Your profile, webhook URLs and KES wallet balance.



## OpenAPI

````yaml GET /api/b2b/users
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/users:
    get:
      tags:
        - Account
      summary: Get user
      description: >-
        Returns the profile behind your credentials: contact details, public
        key, the webhook URLs configured for sandbox and production, and your
        KES wallet balance.
      operationId: get-user
      responses:
        '200':
          description: Account profile.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  firstName:
                    type: string
                  lastName:
                    type: string
                  email:
                    type: string
                  publicKey:
                    type: string
                  webhookUrl:
                    type: string
                    description: Production webhook URL.
                  sandboxWebhookUrl:
                    type: string
                    description: Sandbox webhook URL.
                  KESWallet:
                    type: object
                    properties:
                      balance:
                        type: number
                        description: Available KES balance.
              example:
                success: true
                firstName: Jane
                lastName: Wanjiru
                email: jane@merchant.co.ke
                publicKey: pk_live_xxxxxxxxxxxxxxxx
                webhookUrl: https://merchant.co.ke/webhooks/tanda
                sandboxWebhookUrl: https://staging.merchant.co.ke/webhooks/tanda
                KESWallet:
                  balance: 125000
        '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.