Make an API Request
The examples in this section show how to make an API request using cURL.
Note: the headers below apply to the endpoints listed under Endpoints. The endpoints under V4 Endpoints use plain JSON instead; see Sequences for their conventions.
Authorization
You can collect your API token by following the instructions in the Authentication section. When you call the TextUs APIs, replace {your-token} in the Authorization header with your account’s API token:
-H "Authorization: Bearer {your-token}"
Accept Header
The TextUs API uses a custom mime type. When you call the TextUs APIs, set the Accept header to application/vnd.textus+jsonld:
-i -H "Accept: application/vnd.textus+jsonld"
Content-Type Header
For the TextUs APIs that require a body, set the Content-Type header to application/vnd.textus+jsonld to identify the content type in the request body:
-H "Content-Type: application/vnd.textus+jsonld"