---
title: "Dashboard test surface: lease a provider token (FEATHER_API)"
method: POST
path: "/v1/integrations/connections/{connection_id}/test-lease"
tags: ["integrations"]
---

# Dashboard test surface: lease a provider token (FEATHER_API)

`POST /v1/integrations/connections/{connection_id}/test-lease`

Lease a provider token via ``FEATHER_API`` and prove it works.

Opens ``lease_provider_token`` for the connection and, for Slack, calls
``auth.test`` with the leased token to echo the workspace name. The token
is never returned — only the provider's identity response. Emits a
``feather_api_token_lease`` Tinybird row.

## Path parameters

- `connection_id` string, uuid, required

## Response `200`

Successful Response

- ConnectionTestLeaseResponse — Result of a ``FEATHER_API`` test lease (Step 10). Proves the leased provider token works by calling the provider's identity endpoint (Slack ``auth.test``) — the token itself is never returned to the client.
  - `ok` boolean, required
  - `team` string, nullable
  - `url` string, nullable
  - `detail` string, nullable

## Other responses

- `400` — Bad request
- `401` — Authentication required
- `404` — Resource not found
- `422` — Validation Error

---

[API](https://skmtc.net/oneloop-hq/apis/feather-api.md) · [All operations](https://skmtc.net/oneloop-hq/apis/feather-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oneloop-hq/feather-api/versions/888bdd5c076e/schema)
