All URIs are relative to https://zernio.com/api
| Method | HTTP request | Description |
|---|---|---|
| CreateInviteToken | POST /v1/invite/tokens | Create invite token |
CreateInviteToken201Response CreateInviteToken (CreateInviteTokenRequest createInviteTokenRequest)
Create invite token
Generate a secure invite link to grant team members access to your profiles. Invites expire after 7 days and are single-use.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class CreateInviteTokenExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InvitesApi(httpClient, config, httpClientHandler);
var createInviteTokenRequest = new CreateInviteTokenRequest(); // CreateInviteTokenRequest |
try
{
// Create invite token
CreateInviteToken201Response result = apiInstance.CreateInviteToken(createInviteTokenRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InvitesApi.CreateInviteToken: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Create invite token
ApiResponse<CreateInviteToken201Response> response = apiInstance.CreateInviteTokenWithHttpInfo(createInviteTokenRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InvitesApi.CreateInviteTokenWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| createInviteTokenRequest | CreateInviteTokenRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Invite token created | - |
| 400 | Invalid request | - |
| 401 | Unauthorized | - |
| 403 | One or more profiles not found or not owned | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]