Skip to main content
POST
Create an employer

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
name
string
required
external_id
string
required

Your ID for this company. Unique across your employers.

primary_contact
object
required

The admin who will complete hosted setup.

ein
string
write-only

Nine digits. Write-only; prefills hosted setup.

Pattern: ^\d{9}$
address
object
metadata
object

Up to 50 key-value pairs you can attach to an object. Keys are up to 40 characters and values up to 500.

Example:

Response

The created employer.

id
string
required
Example:

"empr_1Qx8Zt2eZvKYlo2C"

object
string
required
Allowed value: "employer"
name
string
required
Example:

"Acme Robotics"

status
enum<string>
required

onboarding: hosted setup isn't finished. pending_review: setup is submitted and Hammock is reviewing it. active: employees can enroll and payrolls can be reported. closed: the employer no longer offers Hammock benefits.

Available options:
onboarding,
pending_review,
active,
closed
requirements
object
required
metadata
object
required

Up to 50 key-value pairs you can attach to an object. Keys are up to 40 characters and values up to 500.

Example:
livemode
boolean
required

false for objects in the sandbox.

created
string<date-time>
required
Example:

"2027-02-01T15:00:00Z"

Example:

"Acme Robotics, Inc."

external_id
string | null

Your ID for this company. Unique across your employers.

Example:

"company_8f2k1"

ein_last4
string | null

Last four digits of the employer's EIN. The full EIN is never returned.

Example:

"6789"

address
object | null
primary_contact
object