> ## Documentation Index
> Fetch the complete documentation index at: https://cobalt-55-abhishek.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Config

> Get the installed config for an app (config ID defaulted).

Retrieve the installed config for an app on a linked account, without specifying a `config_id` — it defaults to the linked account ID. This is the common case for a single config per account. To target a specific config ID, use [Get Config by ID](/v3/api-reference/configs/get-config).

## Authentication

Configs are scoped to a linked account via the `linked_account_id` header.

<ParamField header="x-api-key" type="string" required>Your Refold API key.</ParamField>
<ParamField header="linked_account_id" type="string" required>The linked account.</ParamField>

## Path Parameters

<ParamField path="slug" type="string" required>The app slug. **Example:** `hubspot`</ParamField>

## Response

<Tabs>
  <Tab title="200 OK">
    <ResponseField name="slug" type="string">The app slug.</ResponseField>
    <ResponseField name="config_id" type="string">The config ID (the linked account ID by default).</ResponseField>
    <ResponseField name="fields" type="array">Configurable fields.</ResponseField>
    <ResponseField name="workflows" type="array">Workflows, each `{id, name, description, enabled}`.</ResponseField>
    <ResponseField name="field_errors" type="array">Datasource resolution errors, if any.</ResponseField>
  </Tab>

  <Tab title="404 Not Found">
    <ResponseField name="status_code" type="integer">HTTP status code.</ResponseField>
    <ResponseField name="http_error_type" type="string">Error category.</ResponseField>
    <ResponseField name="error_code" type="string">Internal error code.</ResponseField>
    <ResponseField name="message" type="string">Human-readable error description.</ResponseField>
  </Tab>
</Tabs>

<ResponseExample>
  ```json 200 theme={null}
  {
    "slug": "hubspot",
    "config_id": "user_12345",
    "field_errors": [],
    "fields": [
      { "id": "699fec7a5bd27ed2af7243ad", "name": "Select", "field_type": "select" }
    ],
    "workflows": [
      { "id": "699d8648a81ba363578cc2f4", "name": "Sync Contacts", "enabled": true }
    ]
  }
  ```

  ```json 404 theme={null}
  {
    "status_code": 404,
    "http_error_type": "NOT_FOUND",
    "error_code": "SERVER_ERROR",
    "message": "Config with config id user_12345 not found"
  }
  ```
</ResponseExample>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://app.refold.ai/api/v2/public/slug/{slug}/config" \
    -H "x-api-key: YOUR_API_KEY" \
    -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID"
  ```
</RequestExample>
