Skip to main content

Requests & Responses

Request format

The Vetrol API accepts requests as standard HTTP. Use application/x-www-form-urlencoded for POST request bodies, or application/json.

Base URL: https://api.vetrol.io/v1

HTTP methods

MethodUsage
GETRetrieve a resource or list of resources
POSTCreate a new resource
PUTReplace a resource entirely
PATCHUpdate specific fields of a resource
DELETEDelete a resource

Response format

All responses are JSON-encoded and include an appropriate HTTP status code.

Successful responses

StatusMeaning
200 OKRequest succeeded
201 CreatedResource created successfully
204 No ContentResource deleted, no body returned

Error responses

StatusMeaning
400 Bad RequestInvalid request parameters
401 UnauthorizedMissing or invalid credentials
403 ForbiddenInsufficient permissions
404 Not FoundResource not found
429 Too Many RequestsRate limit exceeded
500 Internal Server ErrorServer error

See Errors for full details on error codes.