Making Requests
All Genesis API operations use POST requests to a single pattern:
POST /api/{operation-name}Request format
Section titled “Request format”Send a JSON body with the operation’s parameters:
curl -X POST https://api.usegenesis.dev/api/requests-list \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"status": "opened", "limit": 10}'Response format
Section titled “Response format”All responses follow the same envelope:
Success
Section titled “Success”{ "ok": true, "result": { ... }}{ "ok": false, "error": { "code": "requests.not_found", "message": "request not found" }}Pagination
Section titled “Pagination”List endpoints use cursor-based pagination:
{ "ok": true, "result": { "requests": [...], "next_cursor": "abc123", "has_more": true, "total_count": 47 }}Pass next_cursor back as cursor in the next request to get the next page.