Show examples in:
JavascriptHTTP
Endpoint info
Available examples
Dashboard API > Organization invitation

Resend an invitation

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.

Resends the email invitation. 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.

Examples

import { buildClient } from "@datocms/dashboard-client";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const organizationInvitationId = "312";
await client.organizationInvitations.resend(organizationInvitationId);
}
run();