curl --request POST \
--url https://b2b-api.dev-riseworks.io/v2/invites/manager \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"emails": [
"jsmith@example.com"
],
"role": "team_admin",
"nanoid": "<string>"
}'
{
"success": true,
"data": {
"invites": [
"<string>"
],
"typed_data": {
"domain": {
"name": "<string>",
"version": "<string>",
"chainId": 123,
"verifyingContract": "<string>"
},
"types": {
"SetRolesForwardRequest": [
{
"name": "<string>",
"type": "<string>"
}
],
"SetRole": [
{
"name": "<string>",
"type": "<string>"
}
]
},
"typed_data": {
"from": "<string>",
"to": "<string>",
"salt": "<string>",
"expires": "<string>",
"data": [
{
"role": "<string>",
"account": "<string>"
}
]
},
"primary_type": "<string>"
}
}
}
Create admin invites for a company or team. This is used to invite users to the company or team.
curl --request POST \
--url https://b2b-api.dev-riseworks.io/v2/invites/manager \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"emails": [
"jsmith@example.com"
],
"role": "team_admin",
"nanoid": "<string>"
}'
{
"success": true,
"data": {
"invites": [
"<string>"
],
"typed_data": {
"domain": {
"name": "<string>",
"version": "<string>",
"chainId": 123,
"verifyingContract": "<string>"
},
"types": {
"SetRolesForwardRequest": [
{
"name": "<string>",
"type": "<string>"
}
],
"SetRole": [
{
"name": "<string>",
"type": "<string>"
}
]
},
"typed_data": {
"from": "<string>",
"to": "<string>",
"salt": "<string>",
"expires": "<string>",
"data": [
{
"role": "<string>",
"account": "<string>"
}
]
},
"primary_type": "<string>"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Default Response
The response is of type object
.