API Keys
SDK methods for the API Keys module, accessed via soat.apiKeys. See the API Keys module docs for permissions and data model, and each method's REST page for the full request/response schema.
soat.apiKeys.listApiKeys()
List API keys
- Method:
GET - Path:
/api/v1/api-keys
await soat.apiKeys.listApiKeys({
query: { /* + optional */ },
});
soat.apiKeys.createApiKey()
Create an API key
- Method:
POST - Path:
/api/v1/api-keys
await soat.apiKeys.createApiKey({
body: { name, /* + optional */ },
});
soat.apiKeys.getApiKey()
Get an API key
- Method:
GET - Path:
/api/v1/api-keys/{api_key_id}
await soat.apiKeys.getApiKey({
path: { api_key_id },
});
soat.apiKeys.updateApiKey()
Update an API key
- Method:
PUT - Path:
/api/v1/api-keys/{api_key_id}
await soat.apiKeys.updateApiKey({
path: { api_key_id },
body: { /* + optional */ },
});
soat.apiKeys.deleteApiKey()
Delete an API key
- Method:
DELETE - Path:
/api/v1/api-keys/{api_key_id}
await soat.apiKeys.deleteApiKey({
path: { api_key_id },
});