---
title: "Test team SSO connection REST API | HitKeep"
description: "Reference for the HitKeep REST API operation Test team SSO connection, including request parameters, responses, and authentication notes."
canonical: "https://hitkeep.com/api/operations/apiuserteamsidssotest/"
---

# Test team SSO connection REST API

POST

/api/user/teams/{id}/sso/test

FetchcURL

```
const url = 'http://127.0.0.1:25737/api/user/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/sso/test';
const options = {method: 'POST', headers: {cookie: 'hk_token=<hk_token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```
curl --request POST \
  --url http://127.0.0.1:25737/api/user/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/sso/test \
  --cookie hk_token=<hk_token>
```

-

Decrypts the saved client secret in memory and validates that the configured OIDC discovery document remains reachable. Secrets and provider response bodies are not returned.

## Authorizations

- **[cookieAuth](https://hitkeep.com/api/#cookieauth)**

## Parameters

### Path Parameters

**id**

required

string format: uuid

## Responses

### 200

Connection test status

application/json

object

**message**

string

**status**

string

##### Examplegenerated

```
{
  "message": "example",
  "status": "example"
}
```

### 403

Team settings permission or SSO entitlement required

application/json

object

**message**

string

##### Examplegenerated

```
{
  "message": "example"
}
```

### 404

SSO configuration not found

application/json

object

**message**

string

##### Examplegenerated

```
{
  "message": "example"
}
```

### 502

OIDC discovery failed

application/json

object

**message**

string

##### Examplegenerated

```
{
  "message": "example"
}
```

[Previous Delete team SSO configuration](https://hitkeep.com/api/operations/apiuserteamsidsso/delete/)[Next List tracking domains](https://hitkeep.com/api/operations/apiuserteamsidtracking-domains/get/)
