---
title: "Validate credentials"
method: POST
path: "/workspaces/{workspace_id}/integrations/{provider}/validate"
tags: ["Integrations"]
---

# Validate credentials

`POST /workspaces/{workspace_id}/integrations/{provider}/validate`

## Request

- Base URL: `https://api.compelling.ai/v1`
- URL: `https://api.compelling.ai/v1/workspaces/{workspace_id}/integrations/{provider}/validate`
- Auth: HTTP bearer

Tests provider credentials before connecting. Useful for API-key–based providers.

## Request body

- object: Provider-specific credential payload (e.g. `{ "api_key": "..." }`).

## Response `200`

Credentials valid

## Other responses

- `422`: Credentials invalid

---

[API](https://skmtc.dev/compelling/apis/compelling-api.md) · [All operations](https://skmtc.dev/compelling/apis/compelling-api/llms.txt) · [OpenAPI document](https://skmtc.dev/compelling/apis/compelling-api/revisions/55049ff28c67?raw)
