Skip to main content
POST
Create an employer 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
employer
string
required

ID of the employer.

Example:

"empr_1Qx8Zt2eZvKYlo2C"

return_url
string<uri>
required

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

refresh_url
string<uri>
required

Where Hammock sends the admin when the link has expired or was already used. Create a new link there and redirect.

type
enum<string>
default:onboarding

onboarding collects everything in requirements.currently_due. update lets an active employer change its bank account, benefits or admins.

Available options:
onboarding,
update

Response

The employer 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