Skip to main content
The SIBI public API is a GraphQL API. You can use any GraphQL client to make requests to our API. The examples below use curl & fetch

Endpoint

Our API is available at: https://graphql.sibipro.com This endpoint also hosts a GraphQL playground where you can explore the API and test your queries.

Authentication

The SIBI public API uses API keys to authenticate requests. You can create an API key in the SIBI developer dashboard. The API expects the key to be included in all requests in the Authorization header, prefixed by Bearer.
Curl
Fetch

Querying

All requests are made using the POST method. The body of the request should be a JSON object with a query key. The value of the query key should be a GraphQL query. The following examples show how to ask for just the invoice number of all invoices.
Curl
Fetch
The API will return a JSON response:
Response

Projections

The GraphQL API will only return the specific fields requested in the query. This is called a projection. The following example query shows how to ask for the invoice date and total of all invoices.
To request every property available, you can use this query:
For a description list of each of the fields, see the Invoice Schema.

Pagination

The SIBI public API uses page-based pagination (as opposed to cursor-based). By default, the API returns the first page of results. If included in the query projection, the reponse will include pagination information including the current page and whether or not there is a next page:
Will return: