Base URL

All API requests should be made to:
https://api.stardex.ai
For example, to access the /v1/persons endpoint, you would make a request to:
https://api.stardex.ai/v1/persons

Authentication

All API endpoints require authentication using Bearer tokens in the Authorization header. Add your API key as follows:
Authorization: Bearer your_api_key_here
You can get your API key from the Stardex Settings.

Response Format

All API endpoints follow a consistent response format:

Successful Responses

{
  "success": true,
  "data": object  // Response data
}
For paginated responses:
{
  "success": true,
  "data": array,
  "meta": {
    "total": number,
    "offset": number,
    "limit": number
  }
}

Example Successful Response

{
  "success": true,
  "data": {
    "id": "123",
    "name": "John Doe"
    // ... other fields
  }
}

Error Responses

{
  "success": false,
  "error": {
    "code": string,
    "message": string,
  }
}

Example Error Response

{
  "success": false,
  "error": {
    "code": "INVALID_API_KEY",
    "message": "The provided API key is invalid or expired"
  }
}
Common HTTP Status Codes:
  • 200: Operation completed successfully
  • 400: Invalid request or missing fields
  • 401: Missing or invalid API key
  • 403: Forbidden - insufficient permissions
  • 404: Resource not found
  • 500: Unexpected server error