Projects
This page details how to work with Projects through our APIs. Projects are used to organize your service accounts, orders, and associated resources within our platform. This section provides the essential information to retrieve and manage projects via our API.
List Projects
- Endpoint:
GET /v0/projects
- Description:
Retrieve a paginated list of projects accessible to the authenticated service account. - Query Parameters:
page_num
(integer): The page number for pagination.page_size
(integer): The number of projects per page.
- Sample Response:
Note:
Service accounts need to be manually added to projects from the UI before they can access project-related API functionalities.
Get Project Details
- Endpoint:
GET /v0/projects/{id}
- Description:
Retrieve detailed information about a specific project using its unique project ID. - Path Parameter:
id
(string): The unique identifier of the project.
- Sample Response:
How to Use These Endpoints
-
Authentication:
Ensure your API key is included in theAuthorization
header as described in the Authentication section. Without proper authentication, requests will fail with a 403 error. -
Pagination:
Use thepage_num
andpage_size
parameters when listing projects to efficiently navigate through large sets of projects. -
Error Handling:
A 400 error indicates an issue with your request parameters, while a 404 error suggests the specified project ID does not exist.