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

# Create user



## OpenAPI

````yaml openapi.json POST /api/v1/users
openapi: 3.1.0
info:
  title: PagFinance Partner API
  version: 1.0.0
  description: >-
    Curated partner-facing surface of the PagFinance API. Full narrative: see
    the API Reference pages.
servers:
  - url: https://app.pag.finance
    description: Production
security:
  - partnerApiKey: []
tags:
  - name: Auth
  - name: Users
  - name: Partners
  - name: KYC
  - name: Prices
  - name: Validate
  - name: Cashout
  - name: Cashin
  - name: Receipts
  - name: Links
paths:
  /api/v1/users:
    post:
      tags:
        - Users
      summary: Create user
      operationId: createUser
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required: []
              properties:
                externalUserId:
                  type: string
                  description: Your user id
                pubkey:
                  type: string
                  description: Blockchain address
                blockchain:
                  type: string
                  description: Network of the pubkey
                email:
                  type: string
                name:
                  type: string
                  description: Alias for displayName
                phone:
                  type: string
                  description: Alias for phoneNumber
                taxId:
                  type: string
                  description: Stored as SHA-256 hash
      responses:
        '201':
          description: Success
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example:
                success: true
                error: null
                data:
                  uid: usr_ab12
                  externalUserId: user-123
                  kycStatus: PENDING
      security:
        - partnerApiKey: []
        - hmacAuth: []
components:
  securitySchemes:
    partnerApiKey:
      type: http
      scheme: bearer
      description: 'Bearer API key: sk_live_...'
    hmacAuth:
      type: apiKey
      in: header
      name: Authorization
      description: HMAC-SHA256 partnerId=...,timestamp=...,nonce=...,signature=...

````