cURL
curl --request GET \ --url https://api.gnomy.io/api/projects \ --header 'x-api-key: <api-key>'
{ "data": [ { "id": "<string>", "user_id": "<string>", "created_at": "2023-11-07T05:31:56Z", "name": "<string>", "description": "<string>" } ], "pagination": { "page": 123, "pageSize": 123, "total": 123, "totalPages": 123 } }
Retrieves a paginated list of projects for the authenticated user
x-api-key
{ "data": [ { "id": "string", "user_id": "string", "created_at": "string (ISO date)", "name": "string", "description": "string" } ], "pagination": { "page": 1, "pageSize": 10, "total": 100, "totalPages": 10 } }
{ "error": "Unauthorized" }
{ "error": "Error message" }
curl -X GET "https://api.gnomy.io/api/projects?page=1&pageSize=20" \ -H "x-api-key: YOUR_API_KEY"
The page number for pagination
The number of items per page
Successfully retrieved projects
Show child attributes