Skip to main content
POST
Create an enrollment link

Authorizations

Authorization
string
header
required

Your secret API key, sent as Authorization: Bearer hmk_test_....

Headers

Hammock-Version
string

The API version to use for this request. Defaults to the version pinned to your API key.

Idempotency-Key
string

A unique value, up to 255 characters, that makes the request safe to retry for 24 hours.

Maximum string length: 255

Body

application/json
employee
string
required

ID of the employee.

Example:

"emp_5Tg7Rw2nBx8P"

return_url
string<uri>
required

Where Hammock sends the employee when they finish or leave the flow.

Response

The enrollment link.

object
enum<string>
required
Available options:
employer_link,
enrollment_link
url
string<uri>
required

Redirect the user here. Don't email it or store it.

expires_at
string<date-time>
required
created
string<date-time>
required