---
title: "Verify a connection now"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Verify a connection now

Path: CloudRaker Workspace API › Connections

`POST /spaces/{spaceId}/connections/{connectionId}/verify`

Runs the contract’s live verification probe and persists the result on the connection. Stale verifications are also re-probed on a schedule — this is the “check it now” button. Authorization: `space:contribute`. Returns `{ data: { verificationStatus, verificationMessage, verificationCheckedAt, authStatus } }`.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `spaceId` (`verifyConnection.path.spaceId`; string, required)
- `connectionId` (`verifyConnection.path.connectionId`; string, required)

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.cloudraker.com/spaces/<spaceId>/connections/<connectionId>/verify' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/spaces/<spaceId>/connections/<connectionId>/verify';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/spaces/<spaceId>/connections/<connectionId>/verify"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.text)
```

## Responses

### 200

The verification result.

#### Example

```json
{
  "data": {
    "verificationStatus": "ready",
    "verificationMessage": "string",
    "verificationCheckedAt": "string",
    "authStatus": "connected"
  }
}
```

- `data` (`verifyConnection.response.200.data`; object, required)
  - `verificationStatus` (`verifyConnection.response.200.data.verificationStatus`; string, required)
    - one of `"ready"`, `"configured"`, `"needs_authorization"`, `"misconfigured"`, `"degraded"`, `"unknown"`
  - `verificationMessage` (`verifyConnection.response.200.data.verificationMessage`; string | null, required)
  - `verificationCheckedAt` (`verifyConnection.response.200.data.verificationCheckedAt`; string | null, required)
  - `authStatus` (`verifyConnection.response.200.data.authStatus`; string, required)
    - one of `"connected"`, `"needs_reauth"`, `"missing_scopes"`, `"setup_incomplete"`, `"unknown"`


Source: https://docs.cloudraker.com/workspace/api/connections/verify-connection/index.md
