You usually don’t need to use the REST API directly. We provide SDKs to use Hop with various languages and frameworks. The primary reason you’ll need to use the REST API directly is if you’re writing a Hop API wrapper in a language which we don’t have SDK support for yet.
Every feature and action provided by Hop is implemented into our HTTP REST API. The Hop Console, Hop CLI and all server side SDKs use the Hop REST API in the background.
API Base Hostname
Currently, only version 1 (
v1) of the API exists.
All responses from the API will be sent to you in the following JSON format.
Indicates whether the response is successful
The response data object
This field will be present if success is false
success is false, the following error object type will be returned under the
The Hop error code, e.g.
The human-readable error message
For most use-cases, you will just need to use a Project Token
(they start with
ptk_) to authenticate API routes. If you need access to
user-scoped routes, then you can pass in a Personal Access Token generated from
the Hop Console - they start with
To provide authentication to the API, send a token under the
HTTP header. For example: