General API Request Information
The VAS Developer API is RESTful and makes use of different HTTP methods to perform different operations. To construct your API request, the following components are required:
Request Component | Description |
---|---|
HTTP Method |
|
API URL |
|
Resource URI |
The resource from which to retrieve, submit, update, or delete data. For instance, to retrieve information about all the animals in your herd, use: https://integrations.prod.vas.com/api/locations/com.vas.dairies.id/{location-id}/animals NOTE: The resource URI is case-sensitive. If you are encountering unexpected 400 errors, check your URI for correct capitalization of resource names.
|
Query Parameters |
Control which data is returned in the API response. For instance, to find only animals that are cows, use: https://integrations.prod.vas.com/api/locations/com.vas.dairies.id/{location-id}/animals?lactating-only=true |
HTTP Request Headers |
Includes the authorization header with the API key and bearer token:
|