Skip to main content
Every request carries a secret API key in the Authorization header.
A key identifies you as a partner and gives access to every employer you created. There are no per-employer keys: you say which employer a request is about with the employer parameter.

Keeping keys safe

  • Keys are secret. Use them only from your servers, never in a browser or mobile app.
  • All requests must use HTTPS. Requests over plain HTTP fail.
  • A key is shown once, when it’s issued. Hammock stores only a hash and can’t show it again.
During the preview, Hammock issues and rotates keys for you. To rotate, ask for a new key, deploy it, then ask us to revoke the old one. Both work in the meantime.

Errors

A request with a missing, malformed or revoked key returns 401:
Asking for an object that belongs to another partner returns 404 with resource_missing, the same as an object that doesn’t exist.