Introduction

Authentication

Every request to the Hipsy API needs a token that tells Hipsy which user the request is for and what it may access. There are two ways to get one: an API key or OAuth 2.0.


Which one do I need?

API keyOAuth 2.0
Meant forYour own website or integration, for your own accountA server-side app that many Hipsy users connect to their own account
How you get itCreate it yourself in the Hipsy dashboardHipsy registers your app and gives you a client_id and secret
Who logs inNobody, you paste the key into your integrationEach user logs in on Hipsy and approves your app
AccessEverything your account can accessOnly the scopes and organisations the user approved
ExpiresNever, until you delete itAccess tokens after 1 hour, renewed with a refresh token
RevokeDelete the key in the dashboardThe user disconnects your app on hipsy.nl

Use an API key when you connect Hipsy to your own website or tool, like the WordPress plugin or Zapier. Read The API key.

Use OAuth 2.0 when you build an app for other organisers. They never have to share an API key with you: they log in on Hipsy, choose what your app may access, and can disconnect it at any time. Read OAuth 2.0.

Sending the token

Both tokens work the same way in a request. Send the token in the Authorization header as a Bearer token:

curl https://api.hipsy.nl/v1/organisations/index \
   -H "Accept: application/json" \
   -H "Authorization: Bearer {api-key-or-access-token}"

All endpoints in the API reference accept both. Each endpoint lists the OAuth scope it needs. API keys don't use scopes.

Previous
Overview