Back to top

Versioning

Requesting a specific version of a resource from the Packet API is done via the Accept header:

curl -H 'Accept: application/json; version=1'

Alternatively, if your client doesn't support setting headers (or if you're quickly experimenting), you can set the API version with a parameter in the URL, though the Accept header is the preferred method:

curl ?version=1