POST
/
v2
/
invites
/
manager
Create admin invites typed data
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>"
    }
  }
}

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.