/v1/mgmt/company/audit/connectorAuthorization
Descope Project ID and Management Key Project ID:Management Key as bearer token.
In: header
Request Body
application/json
The connector id, assigned by the server on create and required on update.
The connector's display name.
1 <= lengthThe connector template id, such as http, which cannot change after create. LoadAllConnectorTemplates lists the
available templates.
1 <= lengthEither enabled or disabled, defaults to enabled on create. A disabled connector is not run by flows or
automatic triggers; audit streaming ignores status and follows the template's auditEnabled configuration field
if it has one, and is otherwise always on. While its secrets are placeholders, create a connector disabled, also
set auditEnabled: false on an audit connector whose template has that field, and enable it once the real values
are in.
"enabled" | "disabled" | ""A free text description of the connector.
The template's configuration fields by name, as GetConnectorTemplate describes them. Checked against the template
on create and update, with missing defaults filled in; not checked for messaging providers, which have no template.
Secret values are returned as PLACEHOLDER_VALUE, and sending that value back keeps the stored secret.
A company audit connector streams the company-level audit events (console logins, descoper and management key changes, project creation and deletion) to an external endpoint. It needs a company management key with the company-full-access role, not a project key. Create the company's audit connector, using a company management key with the company-full-access role. type is an audit streaming template other than datadog, aws-s3 and aws-eventbridge, and configuration holds the template's fields by name as GetConnectorTemplate describes them, checked against the template as in CreateConnector. A company has at most one audit connector, so this fails with a conflict when one already exists. Returns the stored connector, with secret values as PLACEHOLDER_VALUE.
curl -X POST "https://api.descope.com/v1/mgmt/company/audit/connector" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "type": "string" }'{ "id": "string", "name": "string", "type": "string", "status": "enabled", "description": "string", "configuration": {}}export interface Response {/** * The connector id, assigned by the server on create and required on update. */id?: string/** * The connector's display name. */name: string/** * The connector template id, such as `http`, which cannot change after create. LoadAllConnectorTemplates lists the * available templates. */type: string/** * Either `enabled` or `disabled`, defaults to `enabled` on create. A disabled connector is not run by flows or * automatic triggers; audit streaming ignores `status` and follows the template's `auditEnabled` configuration field * if it has one, and is otherwise always on. While its secrets are placeholders, create a connector `disabled`, also * set `auditEnabled: false` on an audit connector whose template has that field, and enable it once the real values * are in. */status?: ("enabled" | "disabled" | "")/** * A free text description of the connector. */description?: string/** * The template's configuration fields by name, as GetConnectorTemplate describes them. Checked against the template * on create and update, with missing defaults filled in; not checked for messaging providers, which have no template. * Secret values are returned as `PLACEHOLDER_VALUE`, and sending that value back keeps the stored secret. */configuration?: {}}Update auth access policy rule PUT
Update a project-level auth access policy rule. Fields that are not sent keep their stored values, using a valid management key.
Delete company audit connector DELETE
Delete the company's audit connector by id, using a company management key with the `company-full-access` role. Company audit events stop streaming to its endpoint.