POST
/
organizations
/
{id}
/
invitations
TypeScript
import Nuntly from '@nuntly/sdk';

const client = new Nuntly({
  apiKey: 'My API Key',
});

const response = await client.organizations.invitations.send('id', { email: 'sarah.connor@sky.net' });

console.log(response.id);
{
  "data": {
    "id": "invit_01jnxn8wd3gvcr98yscpctd9vw",
    "org_id": "org_01jh6jk82zjq9deye73h0mzcaq",
    "email": "sarah.connor@sky.net",
    "inviter_email": "ray@info.tomlinson.ai",
    "invitation_expired_at": "2025-01-16T22:22:41.247Z",
    "kind": "invitation",
    "status": "pending",
    "created_at": "2025-01-09T22:22:41.247Z",
    "modified_at": "2025-01-09T22:22:41.247Z",
    "region": "eu-west-1"
  }
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>

Path Parameters

id
string
required

The organization id

Body

application/json

Response

200
application/json

A successful response

The response is of type object.