Workestra
API ReferenceEndpoints

Endpoints Overview

Summary of all available API endpoints.

Available Endpoints

All endpoints use the base URL: https://eitztntfwelucezqxjmw.supabase.co/functions/v1

EndpointMethodsDescription
/api-contactsGET, POST, PATCH, DELETECRM contacts
/api-dealsGET, POST, PATCH, DELETECRM deals
/api-issuesGET, POST, PATCH, DELETESupport tickets
/api-projectsGET, POST, PATCH, DELETEProjects and tasks
/api-ingestPOSTBulk data ingestion

Common Parameters

Pagination

All list endpoints support pagination:

ParameterTypeDefaultDescription
pageinteger1Page number
per_pageinteger25Items per page (max 100)

Filtering

Filter results using query parameters:

GET /api-contacts?email=john@example.com&company=Acme

Sorting

Sort results with sort and order parameters:

GET /api-contacts?sort=created_at&order=desc

Error Responses

Errors return a consistent JSON structure:

{
  "error": {
    "code": "not_found",
    "message": "Contact not found"
  }
}
HTTP StatusMeaning
400Bad request — invalid parameters
401Unauthorized — missing or invalid API key
403Forbidden — insufficient permissions
404Not found
429Rate limit exceeded
500Internal server error