Invite someone to the tenant by email
const url = 'https://api.emite.cr/v1/tenants/me/members/invitations';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"email":"newhire@example.com","role":"issuer"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.emite.cr/v1/tenants/me/members/invitations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "email": "newhire@example.com", "role": "issuer" }'Creates (or rotates) a pending invitation with a 7-day TTL and emails a 6-digit code. If a pending invitation already exists for (tenantId, email) the code is rotated and a fresh email is sent (subject to the 60s cooldown). Rejects with 409 MEMBER_ALREADY_EXISTS if the email already has an active membership.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Email of the person to invite: the invitation, with a 6-digit code valid for 7 days, is sent there. Inviting an address whose invitation is still pending replaces its code and role (at most once every 60 seconds: 429 EMAIL_VERIFICATION_COOLDOWN). 409 MEMBER_ALREADY_EXISTS when the address already belongs to a member of the company.
Example
newhire@example.comRole slug assigned on acceptance. May be a system role (admin, billing_manager, accountant, issuer, viewer) OR a custom role slug created via POST /v1/tenants/me/roles. owner is NOT assignable here — use POST /transfer-ownership instead. Custom slugs are validated against the tenant's tenant_custom_roles at the service layer.
Example
issuerResponses
Section titled “Responses”The pending invitation, after its email was sent.
object
Identifier of the invitation — the :invitationId of DELETE /v1/tenants/me/members/invitations/:invitationId.
The invited address, lowercased.
The role the person gets on accepting. A system role (owner, admin, billing_manager, accountant, issuer, viewer) or the slug of one of the company's custom roles (GET /v1/tenants/me/roles).
Who invited: the name of the inviting member, or of the partner app when another Futura Byte product created the invitation. Empty when neither is known.
Email of the inviting member; empty for an invitation a partner app created.
When the emailed code stops working: 7 days after the invitation was sent. Inviting the same address again sends a new code and restarts the 7 days.
When the invitation email was last sent. null when the last attempt to send it failed — the invitation stays pending; invite the address again to resend it.
When the invitation was created. (The response of POST gives the time of that request, also when it re-sent an invitation that was already pending.)
Example
{ "email": "newhire@example.com", "role": "issuer"}Missing or invalid JWT.
Insufficient scope. Team management is JWT-only — API keys cannot reach these endpoints.
Email already belongs to an active member (MEMBER_ALREADY_EXISTS).