OpenAPI
Tesouro API specification is available in the OpenAPI 3.1 format. You can use it to generate your own SDKs for integrating with the Tesouro API.Authentication
All API requests to the Tesouro API platform must be made over HTTPS. Calls made over plain HTTP will fail. For more information on our authentication mechanism, see Authentication.HTTP methods
Tesouro services follow the standard CRUD resource models. This maps to the standard HTTP verbs:| HTTP method | Description |
|---|---|
GET | To retrieve a resource, or a collection of resources. |
POST | To create a new resource, or to execute a complex operation on a resource. |
PATCH | To update a resource partially. |
PUT | To update a resource by providing a full replacement representation. |
DELETE | To delete a resource. |
Date and time
Timestamps are returned in UTC and formatted asYYYY-MM-DDThh:mm:ss[.zzzzzz][Z|±hh:mm] (ISO 8601).
Dates without the time part are formatted as YYYY-MM-DD.