Choose your language:
    Retrieve an invitation
    Returns
    Returns a site_invitation object.

    Examples

    Example code:
    const { SiteClient } = require('datocms-client');
    async function run() {
    const client = new SiteClient('YOUR-API-TOKEN');
    const siteInvitationId = '312';
    const siteInvitation = await client.siteInvitation.find(siteInvitationId);
    console.log(siteInvitation);
    }
    run();
    Returned output:
    > node example.js
    {
    "id": "312",
    "email": "mark.smith@example.com",
    "role": "34"
    }