Create an API connector
This endpoint creates a new API connector that defines how to call an external HTTP endpoint from within Sigma. For more information on API connectors, see [Configure API credentials and connectors in Sigma](https://help.sigmacomputing.com/docs/configure-api-credentials-and-connectors-in-sigma).
### Usage notes
- The user making this request must be assigned an account type with the **Manage API connectors** permission enabled.
- If a credential is provided using the `authId` parameter, the user making this request must have at least **Can view** permission on the credential and the request URL must match the credential's allowlist.
- Retrieve the **apiCredentialId** (used as `authId`) by calling the [/v2/api-credentials](https://help.sigmacomputing.com/reference/list-api-credentials) endpoint.
### Usage scenarios
- **Programmatic connector setup:** Automate creation of API connectors as part of an environment provisioning workflow.
- **Integration onboarding:** Create connectors for each external service your workbooks need to interact with.
Authentication
AuthorizationBearer
OAuth authentication of the form <token>.
Request
The request body.
name
Display name of the connector.
params
description
Human-readable description.
config
authId
Identifier of the API credential (apiCredentialId) used to authenticate requests.
Response
The response body.
apiConnectorId
Unique identifier of the API connector.
name
Display name of the connector.
params
config
createdBy
The identifier of the user who created this object.
updatedBy
The identifier of the user or process that last updated this object.
createdAt
When the object was created.
updatedAt
When the object was last updated.
description
Human-readable description.
authId
Identifier of the API credential (apiCredentialId) used to authenticate requests. null if unauthenticated.

