# Retrieve a Connection

Returns a connection you previously created. Secrets are masked.

### Path Parameters

<ParamField path="connection_id" type="string" required>
  The id returned by [Create a Connection](/reference/organizations/connections/create-connection). Must belong to the account your API key is scoped to.
</ParamField>

### Response

<ResponseField name="connection_id" type="string">
  Unique identifier for the connection.
</ResponseField>
<ResponseField name="merchant_connection_id" type="string">
  Your internal label for this connection.
</ResponseField>
<ResponseField name="provider_id" type="string">
  The provider this connection belongs to.
</ResponseField>
<ResponseField name="status" type="string">
  Current status.
</ResponseField>
<ResponseField name="flow_type" type="string">
  Always `PAYIN`.
</ResponseField>
<ResponseField name="payment_methods" type="string[]">
  List of supported payment methods.
</ResponseField>
<ResponseField name="params" type="object[]">
  Echoed parameters. Sensitive values are masked as `***`.
</ResponseField>
<ResponseField name="costs" type="object[]">
  Cost configuration for the connection.
</ResponseField>
<ResponseField name="created_at" type="string">
  ISO 8601 timestamp.
</ResponseField>
<ResponseField name="updated_at" type="string">
  ISO 8601 timestamp.
</ResponseField>

<CodeGroup>
```bash cURL
curl -X GET 'https://api.whitelabel.com/v1/connections/f1a3c4d5-7b8e-4a2c-9d1e-3f4a5b6c7d8e' \
  -H 'public-api-key: <YOUR_PUBLIC_KEY>' \
  -H 'private-secret-key: <YOUR_SECRET_KEY>'
```

```json 200 OK — Stripe
{
  "connection_id": "f1a3c4d5-7b8e-4a2c-9d1e-3f4a5b6c7d8e",
  "merchant_connection_id": "stripe-us-prod-001",
  "provider_id": "STRIPE",
  "status": "ACTIVE",
  "flow_type": "PAYIN",
  "payment_methods": ["CARD", "GOOGLE_PAY", "APPLE_PAY"],
  "params": [
    { "param_id": "API_KEY",             "value": "***" },
    { "param_id": "PUBLISHABLE_KEY",     "value": "pk_live_..." }
  ],
  "costs": [
    {
      "sort_number": 1,
      "cost_name": "Transaction Fee",
      "currency": "USD",
      "cost_values": {
        "successful":   { "fixed_fee": 0.30, "percentage": 2.9 },
        "unsuccessful": { "fixed_fee": 0.0,  "percentage": 0.0 }
      }
    }
  ],
  "created_at": "2026-05-12T10:24:00Z",
  "updated_at": "2026-05-12T10:24:00Z"
}
```

```json 404 Not Found
{
  "type": "not_found",
  "code": "CONNECTION_NOT_FOUND",
  "message": "Connection '...' was not found",
  "details": { "connection_id": "..." }
}
```
</CodeGroup>

### Errors

<div className="code-nowrap-table dense-table">

| HTTP | `code` | When |
|---|---|---|
| `401` | `NOT_AUTHENTICATED` | Missing or invalid API key. |
| `404` | `CONNECTION_NOT_FOUND` | Unknown `connection_id`, or the id belongs to a different account. |

</div>

**GET** `/connections/{connection_id}`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Returns a connection you previously created.

## Authorization

- PUBLIC-API-KEY (apiKey in header)
- PRIVATE-SECRET-KEY (apiKey in header)

## Path parameters

- `connection_id` (string, required)

## Responses

### 200

OK

- `connection_id` (string)
- `merchant_connection_id` (string)
- `provider_id` (string)
- `status` (string)
- `flow_type` (string)
- `payment_methods` (string[])
- `params` (object[])
  - `param_id` (string)
  - `value` (string)
- `costs` (object[])
  - `sort_number` (integer)
  - `cost_name` (string)
  - `currency` (string)
- `created_at` (string<date-time>)
- `updated_at` (string<date-time>)

Example:

```json
{
  "connection_id": "f1a3c4d5-7b8e-4a2c-9d1e-3f4a5b6c7d8e",
  "merchant_connection_id": "stripe-us-prod-001",
  "provider_id": "STRIPE",
  "status": "ACTIVE",
  "flow_type": "PAYIN",
  "payment_methods": [
    "CARD",
    "GOOGLE_PAY",
    "APPLE_PAY"
  ],
  "params": [
    {
      "param_id": "merchantAccount",
      "value": "ACME_LIVE"
    }
  ],
  "costs": [
    {
      "sort_number": 1,
      "cost_name": "Transaction Fee",
      "currency": "USD"
    }
  ],
  "created_at": "2026-05-12T10:24:00Z",
  "updated_at": "2026-05-12T10:24:00Z"
}
```

### 401

Unauthorized

- `type` (string)
- `code` (string)
- `message` (string)

Example:

```json
{
  "type": "auth_error",
  "code": "NOT_AUTHENTICATED",
  "message": "Not authenticated"
}
```

### 404

Not Found

- `type` (string)
- `code` (string)
- `message` (string)

Example:

```json
{
  "type": "not_found",
  "code": "CONNECTION_NOT_FOUND",
  "message": "Connection '...' was not found"
}
```