POST
/
v2
/
invites
Create invites for employees and contractors
curl --request POST \
  --url https://b2b-api.dev-riseworks.io/v2/invites \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "nanoid": "<string>",
  "invites": [
    {
      "email": "jsmith@example.com",
      "prefill": {
        "first_name": "<string>",
        "last_name": "<string>",
        "phone": "<string>",
        "company_name": "<string>",
        "job_title": "<string>",
        "company_size": "<string>",
        "company_website": "<string>",
        "company_industry": "<string>",
        "company_address": "<string>",
        "company_city": "<string>",
        "company_state": "<string>",
        "company_zip": "<string>",
        "company_country": "<string>"
      }
    }
  ],
  "role": "contractor",
  "anonymous": true
}'
{
  "success": true,
  "data": {
    "nanoids": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Default Response

The response is of type object.