Base URL

https://api.ndowdev.crownandgreyhound.com/v2

Authentication

Include your API key in the Authorization header:

Authorization: Bearer your_api_key_here

Endpoints

POST
/auth/login
Authenticate user and return access token
GET
/users
Get list of users with pagination
GET
/users/{id}
Get specific user by ID
POST
/users
Create a new user account
PUT
/users/{id}
Update existing user information
GET
/projects
List all projects for authenticated user
POST
/projects
Create a new project
GET
/webhooks
List configured webhooks
POST
/webhooks
Create new webhook endpoint

Example Response

json
{
  "data": [
    {
      "id": "usr_1234567890",
      "email": "[email protected]",
      "name": "John Developer",
      "role": "admin",
      "created_at": "2025-01-09T10:30:00Z",
      "last_login": "2025-01-09T15:45:00Z",
      "projects": 12,
      "status": "active"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 10,
    "total": 156,
    "pages": 16,
    "has_next": true,
    "has_prev": false
  },
  "meta": {
    "request_id": "req_abcd1234",
    "response_time": "45ms",
    "api_version": "2.0"
  }
}