To make API calls you will need to have a ClientId and ClientSecret provisioned by the Ginkgo Biosecurity team.
Authentication
The Horizon API uses an OAuth2.0 flow for authentication and access control. Each Horizon API user will be provided with a ClientId and ClientSecret that will be used to request an authorization token. Authorization tokens are valid for 24 hours before expiring. A new authorization token can be requested as often as you want, and in general it is recommended that you request a new token for every “session” rather than persisting the token and handling its expiration.Content types
The Ginkgo Biosecurity API always returns JSON in the response bodies.Pagination
Some API endpoints require using pagination to retrieve all the records due to the dataset size. Our v1 and v2 APIs differ in their pagination schemes. It is recommended to use v2 paginated APIs for all use cases due to their consistent API performance when paging through large datasets.V1 Pagination (offset-based)
How it Works
V1 endpoints use offset-based pagination with the following parameters:offset: Starting position (0-based index) for the first record to returnnum: Maximum number of records to return (1-1000)
Example Usage
Response Format
V1 paginated endpoints return a simple array of records:V2 Pagination (cursor-based)
How it Works
V2 endpoints use cursor-based pagination with the following parameters:page: Opaque cursor string for pagination (omit for the first page)num: Maximum number of records to return (1-1000)
Example Usage
Response Format
V2 paginated endpoints return a structured response with pagination metadata:Response Fields
data: Array of records for current pagehas_more: Boolean indicating if more pages are availablenext_page: Cursor string for the next page (null if no more pages)