Skip to content

Making Requests

All Genesis API operations use POST requests to a single pattern:

POST /api/{operation-name}

Send a JSON body with the operation’s parameters:

Terminal window
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}'

All responses follow the same envelope:

{
"ok": true,
"result": { ... }
}
{
"ok": false,
"error": {
"code": "requests.not_found",
"message": "request not found"
}
}

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.