(allowlistBlocklist)
- listAllowlistIdentifiers - List all identifiers on the allow-list
- createAllowlistIdentifier - Add identifier to the allow-list
- createBlocklistIdentifier - Add identifier to the block-list
- deleteBlocklistIdentifier - Delete identifier from block-list
Get a list of all identifiers allowed to sign up to an instance
declare(strict_types=1);
require 'vendor/autoload.php';
use Clerk\Backend;
$security = '<YOUR_BEARER_TOKEN_HERE>';
$sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build();
$response = $sdk->allowlistBlocklist->listAllowlistIdentifiers(
);
if ($response->allowlistIdentifierList !== null) {
// handle response
}
?Operations\ListAllowlistIdentifiersResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\ClerkErrors45 | 401, 402 | application/json |
Errors\SDKException | 4XX, 5XX | */* |
Create an identifier allowed to sign up to an instance
declare(strict_types=1);
require 'vendor/autoload.php';
use Clerk\Backend;
use Clerk\Backend\Models\Operations;
$security = '<YOUR_BEARER_TOKEN_HERE>';
$sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build();
$request = new Operations\CreateAllowlistIdentifierRequestBody(
identifier: '<value>',
);
$response = $sdk->allowlistBlocklist->createAllowlistIdentifier(
request: $request
);
if ($response->allowlistIdentifier !== null) {
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
$request |
Operations\CreateAllowlistIdentifierRequestBody | ✔️ | The request object to use for the request. |
?Operations\CreateAllowlistIdentifierResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\ClerkErrors46 | 400, 402, 422 | application/json |
Errors\SDKException | 4XX, 5XX | */* |
Create an identifier that is blocked from accessing an instance
declare(strict_types=1);
require 'vendor/autoload.php';
use Clerk\Backend;
use Clerk\Backend\Models\Operations;
$security = '<YOUR_BEARER_TOKEN_HERE>';
$sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build();
$request = new Operations\CreateBlocklistIdentifierRequestBody(
identifier: '<value>',
);
$response = $sdk->allowlistBlocklist->createBlocklistIdentifier(
request: $request
);
if ($response->blocklistIdentifier !== null) {
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
$request |
Operations\CreateBlocklistIdentifierRequestBody | ✔️ | The request object to use for the request. |
?Operations\CreateBlocklistIdentifierResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\ClerkErrors49 | 400, 402, 422 | application/json |
Errors\SDKException | 4XX, 5XX | */* |
Delete an identifier from the instance block-list
declare(strict_types=1);
require 'vendor/autoload.php';
use Clerk\Backend;
$security = '<YOUR_BEARER_TOKEN_HERE>';
$sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build();
$response = $sdk->allowlistBlocklist->deleteBlocklistIdentifier(
identifierId: '<id>'
);
if ($response->deletedObject !== null) {
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
identifierId |
string | ✔️ | The ID of the identifier to delete from the block-list |
?Operations\DeleteBlocklistIdentifierResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\ClerkErrors50 | 402, 404 | application/json |
Errors\SDKException | 4XX, 5XX | */* |