Skip to main content
POST
/
business_units
cURL
curl --request POST \
  --url https://sandbox.withclasp.com/business_units \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "employer": "<string>",
  "legal_name": "<string>",
  "public_id": "<string>",
  "trade_name": "<string>",
  "federal_ein": "<string>",
  "is_primary": true,
  "phone_number": "<string>",
  "email": "<string>",
  "metadata": {}
}
'
{
  "id": "<string>",
  "employer": "<string>",
  "legal_name": "<string>",
  "public_id": "<string>",
  "trade_name": "<string>",
  "federal_ein": "<string>",
  "is_primary": true,
  "address": {
    "line1": "<string>",
    "city": "<string>",
    "state": "AL",
    "zip_code": "<string>",
    "line2": "<string>"
  },
  "phone_number": "<string>",
  "email": "<string>",
  "metadata": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.withclasp.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API Key authentication with required prefix "Bearer"

Body

employer
string
required
Maximum string length: 255
public_id
string
Maximum string length: 30
Pattern: ^[-a-zA-Z0-9_]+$
trade_name
string | null
Maximum string length: 255
federal_ein
string | null
Maximum string length: 255
is_primary
boolean
address
object
phone_number
string | null
Maximum string length: 10
email
string | null
Maximum string length: 255
metadata
object

Up to 50 key-value pairs. Keys max 40 characters, values max 500 characters. Set a value to empty string to remove a key. On PATCH, metadata is merged with existing values.

Response

201 - application/json
id
string
required
read-only
Pattern: ^[-a-zA-Z0-9_]+$
employer
string
required
Maximum string length: 255
public_id
string
Maximum string length: 30
Pattern: ^[-a-zA-Z0-9_]+$
trade_name
string | null
Maximum string length: 255
federal_ein
string | null
Maximum string length: 255
is_primary
boolean
address
object
phone_number
string | null
Maximum string length: 10
email
string | null
Maximum string length: 255
metadata
object

Up to 50 key-value pairs. Keys max 40 characters, values max 500 characters. Set a value to empty string to remove a key. On PATCH, metadata is merged with existing values.