API Reference Overview

PersonQL provides a comprehensive REST API for authentication, user management, organizations, and analytics.

Base URL

https://app.personql.com/api/v1

Authentication

All API requests require authentication via Bearer token:

curl -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  https://app.personql.com/api/v1/users/me

Endpoints

Authentication

Users

Organizations

Customer Data Platform (CDP)

Rate Limits

Rate limit headers:

X-RateLimit-Limit: 300
X-RateLimit-Remaining: 299
X-RateLimit-Reset: 1640000000

Error Responses

All errors follow this format:

{
  "error": {
    "code": "INVALID_CREDENTIALS",
    "message": "Invalid email or password",
    "details": {}
  }
}

Common error codes:

Response Format

All successful responses follow this format:

{
  "data": {
    // Response data
  },
  "meta": {
    "timestamp": "2025-10-15T12:00:00Z",
    "requestId": "req_123456789"
  }
}

Pagination

List endpoints support pagination:

GET /users?page=2&limit=50

Response includes pagination metadata:

{
  "data": [...],
  "meta": {
    "page": 2,
    "limit": 50,
    "total": 500,
    "totalPages": 10
  }
}

Filtering and Sorting

Use query parameters for filtering:

GET /organizations?status=active&sort=-created_at

Webhooks

PersonQL can send webhooks for events:

Configure webhooks in the PersonQL dashboard.

SDK Support

Use PersonQL SDKs for easier integration:

Next Steps