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" } }
Send an invitation to someone you wish to invite to join your organization
Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>
The organization id
A successful response
The response is of type object.
object