apiCredentials
Create an API Credential
Create a new API Credential for the specified Organization.
post/v1/organizations/{organizationId}/api-credentials
Path parameters
organizationIdstring required
The <code>id</code> of the Organization where you want to create the API Credential.
Request body
Example request
{
"name": "Auto-Manage-Workspaces",
"description": "Used for automated Workspace management",
"enabled": true,
"roles": {
"workspaces": [
{
"workspaceId": "main"
}
]
},
"ipAllowlist": [
"10.0.0.1/32"
]
}Response
API Credential created
Example response
{
"name": "Auto-Manage-Workspaces",
"description": "Used for automated Workspace management",
"enabled": true,
"organizationId": "org-123",
"clientId": "clientIdabcd1234EXAMPLE",
"roles": {
"workspaces": [
{
"workspaceId": "main"
}
]
},
"ipAllowlist": [
"10.0.0.1/32"
],
"createdBy": "user@example.com",
"createdDate": "2024-08-15T12:34:56.000Z",
"lastUpdatedBy": "user@example.com",
"lastUpdatedDate": "2024-08-15T12:34:56.000Z",
"clientSecret": "clientSecretabcd1234EXAMPLE"
}