API Reference

Complete REST API documentation with interactive examples. Explore all endpoints, authentication methods, and integration possibilities with our comprehensive API reference.

50+ Endpoints

Comprehensive API coverage for all services

Interactive Testing

Test APIs directly from the documentation

Code Examples

Ready-to-use examples in multiple languages

API Endpoints

Explore all available API endpoints with detailed documentation, parameters, and response examples

Parameters

NameTypeRequiredDescription
emailstringRequiredUser email address
passwordstringRequiredUser password

Example Request

curl -X POST https://api.nexatech.pk/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{
    "email": "user@example.com",
    "password": "your_password"
  }'

Response

{
  "success": true,
  "data": {
    "user": {
      "id": "user_123",
      "email": "user@example.com",
      "name": "John Doe"
    },
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "expires_in": 3600
  }
}

Parameters

NameTypeRequiredDescription
idstringRequiredUser ID

Example Request

curl -X GET https://api.nexatech.pk/v1/users/user_123 \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Response

{
  "success": true,
  "data": {
    "id": "user_123",
    "email": "user@example.com",
    "name": "John Doe",
    "created_at": "2024-01-01T00:00:00Z",
    "updated_at": "2024-01-15T00:00:00Z"
  }
}

Parameters

NameTypeRequiredDescription
amountintegerRequiredAmount in cents
currencystringRequiredCurrency code (PKR, USD)
customer_idstringRequiredCustomer ID

Example Request

curl -X POST https://api.nexatech.pk/v1/payments \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 10000,
    "currency": "PKR",
    "customer_id": "cust_123"
  }'

Response

{
  "success": true,
  "data": {
    "id": "payment_123",
    "amount": 10000,
    "currency": "PKR",
    "status": "pending",
    "client_secret": "pi_123_secret_456"
  }
}

API Playground

Test our APIs directly from the browser. No setup required - just select an endpoint and send your request.

Request

Response

200 OKResponse time: 245ms
// Response will appear here after sending a request...

Send a request to see the response

Real API Calls

Test against our live API endpoints with real responses

Copy Code

Copy request examples to use in your applications

Custom Headers

Test with authentication tokens and custom headers