beel_create_invitation
Generate a single-use invitation link or token for a person to join an account as admin or member, with optional company access grants and email sending.
Instructions
Creates a single-use invitation for a person to join the account with the given
account_role.
token: the acceptance secret, returned once and never readable again, so deliver it to the invitee.invitation_urlis the ready-to-use link built from that same token.grants: required. Send the companies aMEMBERstarts with, or[]to invite them with no company access yet. Grants are only valid forMEMBER, sinceOWNERandADMINreach every company implicitly.account_role:OWNERcannot be invited. An account has exactly one owner, handed over only throughPUT /v1/accounts/{account_id}/owner.send_email: defaults tofalse, so BeeL sends no email and you deliver the token orinvitation_urlyourself. Set it totrueto have the invitation emailed toinvited_emailas well.
Endpoint: POST /v1/accounts/{account_id}/invitations
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| account_id | Yes | Your own account, or an account you provisioned. It — not the credential — decides which account the operation acts on; a `403` is returned when you do not reach it, the same response an account that does not exist gets. | |
| idempotency_key | No | Optional idempotency key for this operation. Omit it and one is derived from the request itself, which makes a blind retry safe but also collapses a SECOND, deliberately identical operation into the first for 24 hours. Set it — to an order id, or anything unique per intended operation — whenever you mean to create something that may look identical to what you just created. |