# Invite a new member

> [!WARNING] Warning: Experimental API
> Please note that the Dashboard API is an experimental, prerelease API. This API method is considered unstable, and should be avoided in production environments and automations. Changes may occur at any time without warning.

Sends an invitation email to the given address. Invitation emails are capped per day for each organization, and the cap counts both new and resent invitations. Past the cap the API answers `429 RATE_LIMIT_EXCEEDED`, and the `X-RateLimit-Reset` header tells how many seconds are left before new invitations can be sent.

## Body parameters

**`email`**

- Required
- Type: string
- Example: `"mark.smith@example.com"`

Email

**`role`**

- Required
- Type: [ResourceLinkage\<"organization_role"\>](http://localhost:8080/docs/content-management-api/resources/organization_role.md)

Role

## Returns

Returns a resource object of type [organization\_invitation](https://www.datocms.com/docs/content-management-api/resources/organization-invitation.md)

## Examples

###### Example Basic example

Code

```javascript
import { buildClient } from "@datocms/dashboard-client";

async function run() {
  const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });

  const organizationInvitation = await client.organizationInvitations.create({
    email: "mark.smith@example.com",
    role: { type: "organization_role", id: "312" },
  });

  // Check the 'Returned output' tab for the result ☝️
  console.log(organizationInvitation);
}

run();
```

Returned output

```javascript
{
  id: "312",
  email: "mark.smith@example.com",
  meta: { expired: false },
  role: { type: "organization_role", id: "312" },
}
```

## Related content in "Dashboard API"

- [Account](https://www.datocms.com/docs/dashboard-api/resources/account.md)
- [Session](https://www.datocms.com/docs/dashboard-api/resources/session.md)
- [OAuth application](https://www.datocms.com/docs/dashboard-api/resources/oauth-application.md)
- [Organization](https://www.datocms.com/docs/dashboard-api/resources/organization.md)
- [Organization role](https://www.datocms.com/docs/dashboard-api/resources/organization-role.md)
- [Organization invitation](https://www.datocms.com/docs/dashboard-api/resources/organization-invitation.md)
- [Invite a new member](https://www.datocms.com/docs/dashboard-api/resources/organization-invitation/create.md)
- [Update an invitation](https://www.datocms.com/docs/dashboard-api/resources/organization-invitation/update.md)
- [List all invitations](https://www.datocms.com/docs/dashboard-api/resources/organization-invitation/instances.md)
- [Retrieve an invitation](https://www.datocms.com/docs/dashboard-api/resources/organization-invitation/self.md)
- [Delete an invitation](https://www.datocms.com/docs/dashboard-api/resources/organization-invitation/destroy.md)
- [Resend an invitation](https://www.datocms.com/docs/dashboard-api/resources/organization-invitation/resend.md)
- [Redeem token](https://www.datocms.com/docs/dashboard-api/resources/organization-invitation/redeem.md)
- [Organization membership](https://www.datocms.com/docs/dashboard-api/resources/organization-membership.md)
- [Organization mandate request](https://www.datocms.com/docs/dashboard-api/resources/organization-mandate-request.md)
- [Organization mandate](https://www.datocms.com/docs/dashboard-api/resources/organization-mandate.md)
- [Project](https://www.datocms.com/docs/dashboard-api/resources/site.md)
- [Site invitation](https://www.datocms.com/docs/dashboard-api/resources/site-invitation.md)
- [Site transfer request](https://www.datocms.com/docs/dashboard-api/resources/site-transfer.md)
- [Account subscription](https://www.datocms.com/docs/dashboard-api/resources/per-owner-pricing-subscription.md)
- [Plan](https://www.datocms.com/docs/dashboard-api/resources/per-owner-pricing-plan.md)
- [Billing profile](https://www.datocms.com/docs/dashboard-api/resources/per-owner-pricing-billing-profile.md)
- [Invoice](https://www.datocms.com/docs/dashboard-api/resources/invoice.md)
- [Billing profile](https://www.datocms.com/docs/dashboard-api/resources/resource-usage.md)
- [Daily Usage](https://www.datocms.com/docs/dashboard-api/resources/daily-usage.md)
- [Subscription limit](https://www.datocms.com/docs/dashboard-api/resources/subscription-limit.md)
- [Subscription feature](https://www.datocms.com/docs/dashboard-api/resources/subscription-feature.md)
- [Job result](https://www.datocms.com/docs/dashboard-api/resources/job-result.md)
- [Per-project subscription](https://www.datocms.com/docs/dashboard-api/resources/site-subscription.md)
- [Plan](https://www.datocms.com/docs/dashboard-api/resources/site-plan.md)
- [Billing profile](https://www.datocms.com/docs/dashboard-api/resources/per-site-pricing-billing-profile.md)