Skip to content

Latest commit

 

History

History
90 lines (59 loc) · 4.77 KB

File metadata and controls

90 lines (59 loc) · 4.77 KB

WaitlistEntries

(WaitlistEntries)

Overview

Available Operations

ListWaitlistEntries

Retrieve a list of waitlist entries for the instance. Entries are ordered by creation date in descending order by default. Supports filtering by email address or status and pagination with limit and offset parameters.

Example Usage

using Clerk.BackendAPI;
using Clerk.BackendAPI.Models.Components;
using Clerk.BackendAPI.Models.Operations;

var sdk = new ClerkBackendApi(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");

ListWaitlistEntriesRequest req = new ListWaitlistEntriesRequest() {
    Limit = 20,
    Offset = 10,
};

var res = await sdk.WaitlistEntries.ListWaitlistEntriesAsync(req);

// handle response

Parameters

Parameter Type Required Description
request ListWaitlistEntriesRequest ✔️ The request object to use for the request.

Response

ListWaitlistEntriesResponse

Errors

Error Type Status Code Content Type
Clerk.BackendAPI.Models.Errors.SDKError 4XX, 5XX */*

CreateWaitlistEntry

Creates a new waitlist entry for the given email address. If the email address is already on the waitlist, no new entry will be created and the existing waitlist entry will be returned.

Example Usage

using Clerk.BackendAPI;
using Clerk.BackendAPI.Models.Components;
using Clerk.BackendAPI.Models.Operations;

var sdk = new ClerkBackendApi(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");

CreateWaitlistEntryRequestBody req = new CreateWaitlistEntryRequestBody() {
    EmailAddress = "[email protected]",
};

var res = await sdk.WaitlistEntries.CreateWaitlistEntryAsync(req);

// handle response

Parameters

Parameter Type Required Description
request CreateWaitlistEntryRequestBody ✔️ The request object to use for the request.

Response

CreateWaitlistEntryResponse

Errors

Error Type Status Code Content Type
Clerk.BackendAPI.Models.Errors.ClerkErrors 400, 422 application/json
Clerk.BackendAPI.Models.Errors.SDKError 4XX, 5XX */*