Skip to Content
Omnibase

Create a tenant invite

POST
/api/v1/tenants/invites

Authorization

headerX-Session-Token<token>

Kratos session JWT token. Alternative to cookie authentication for non-browser clients.

Request Body

application/json
  1. body
email*string
Formatemail
invite_url*string
Formaturi
role*string

Response Body

OK

application/json
  1. response
invite*
message*string
Example Request
curl -X POST 'https://api.omnibase.tech/api/v1/tenants/invites' \  -H 'Content-Type: application/json' \  -d '{  "email": "test@example.com",  "invite_url": "https://app.example.com/accept-invite",  "role": "member"}'
Example Response
{  "invite": {    "created_at": "2019-08-24T14:15:22Z",    "email": "string",    "expires_at": "2019-08-24T14:15:22Z",    "id": "string",    "inviter_id": "string",    "role": "string",    "tenant_id": "string",    "token": "string",    "used_at": "2019-08-24T14:15:22Z"  },  "message": "Invite sent successfully"}