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

# Your first request

> Check your token, list your Provider connections, and read your data catalog.

This walkthrough checks that your token works. Then it lists the Provider
connections in your Workspace and reads the Workspace's data catalog.

All three calls only read. A Parable token works for each one. An MCP token
works too, while the Workspace allows external agents. A SQL token does not.
See [Authentication](https://developers.askparable.com/getting-started/authentication.md) to get a token.

Set these variables first:

```bash theme={null}
export PARABLE_API_URL="https://api.parable.work"
export PARABLE_API_TOKEN="pat_..."     # your personal access token
export PARABLE_WORKSPACE="acme-corp"   # your Workspace's slug
```

**1. Check who you are**

`GET /api/users/me` returns your membership in the Workspace. It needs no
role. Every member can call it.

```bash theme={null}
curl "$PARABLE_API_URL/api/users/me" \
  -H "Authorization: Bearer $PARABLE_API_TOKEN" \
  -H "X-Tenant: $PARABLE_WORKSPACE"
```

```json Response (shortened) theme={null}
{
  "data": {
    "id": "YQJpYwUwvbaLOwTUr4thA",
    "name": "Jordan Rivera",
    "email": "jordan.rivera@example.com",
    "status": "ACTIVE",
    "roles": [
      {
        "id": "3hX9pQ2mLr7TvB4nC8kZd",
        "name": "Analyst",
        "permissions": ["tenant.view", "tenant.data.catalog"]
      }
    ],
    "timezone": "America/New_York",
    "locale": "en-US"
  },
  "meta": {
    "requestId": "..."
  }
}
```

A `200` with your own record means that authentication works. A `401`
means that the token is wrong, revoked, or expired.

**2. List your Provider connections**

`GET /api/vendors/tenant-connector-instances` lists each Provider
connection in the Workspace, such as GitHub, Jira, or Slack. Each item
has a `connectionStatus`, such as `idle`, `sync_failed`, or
`credential_error`, and a `connectionStatusMessage` that explains it.
The call needs a role that can view Provider connections.

```bash theme={null}
curl "$PARABLE_API_URL/api/vendors/tenant-connector-instances" \
  -H "Authorization: Bearer $PARABLE_API_TOKEN" \
  -H "X-Tenant: $PARABLE_WORKSPACE"
```

Use this call to add a sync-health check to your own monitoring.

**3. Read your data catalog**

`GET /api/v2/catalog` lists the tables and views that your Workspace can
query from its Provider data, with their columns. The call needs a role
that can read the data catalog. With an MCP token, the catalog lists only
the tables that the token's owner can query.

```bash theme={null}
curl "$PARABLE_API_URL/api/v2/catalog" \
  -H "Authorization: Bearer $PARABLE_API_TOKEN" \
  -H "X-Tenant: $PARABLE_WORKSPACE"
```

[Parable Data Engine](https://developers.askparable.com/data.md) explains how to query these tables with
SQL.

A `403` means that your roles do not allow the call in this Workspace.

## The response envelope

Every successful response wraps its payload in the same envelope.

| Field | Purpose |
| - | - |
| `data` | The resource or list you asked for. |
| `meta.requestId` | A unique ID for the request. Include it when you contact support. |

Every response, successful or not, also has an `X-Request-ID` header with the
same ID. You can send your own `X-Request-ID` on a request, and Parable uses
it.

## Pages of results

Most lists return every item in one response. The lists that page do it in
one of two ways.

**Offset and limit.** Send `limit` and `offset` as query parameters. When
`data` is an object, it repeats `limit` and `offset` and has the page in
`items` and the full count in `total`. When `data` is an array, read the next
page until a page holds fewer items than `limit`.

```bash theme={null}
curl "$PARABLE_API_URL/api/roles/roles?limit=50&offset=0" \
  -H "Authorization: Bearer $PARABLE_API_TOKEN" \
  -H "X-Tenant: $PARABLE_WORKSPACE"
```

| List | Page shape |
| - | - |
| `GET /api/roles/roles` | `items`, `limit`, `offset`, `total` |
| `GET /api/vendors/parable-vendors` | `items`, `limit`, `offset`, `total` |
| `GET /api/connector-requests/connector-requests` | `items`, `limit`, `offset`, `total` |
| `GET /api/tenant-connector-taps/tenant-connector-taps` | An array of Taps. `limit` is at most 250. |
| `GET /api/parable/authoring/primaries/{rootRefId}/report-runs` | `runs` and `hasMore`. `limit` is 1 to 50. |

**Cursor.** The response has a `nextCursor` in `data`. Send it back as
`cursor` to read the next page. When `nextCursor` is empty or absent, there
are no more pages. Plot data
(`POST /api/parable/authoring/primaries/{rootRefId}/plots/data`) and a
listing from `POST /api/provider-pool/search` page this way.

## Errors

An error response has the content type `application/problem+json`
(RFC 9457). Its body has these members:

| Member | Purpose |
| - | - |
| `type` | `about:blank` |
| `title` | The HTTP status text, such as `Forbidden`. |
| `status` | The HTTP status code. |
| `detail` | What went wrong, in words you can show a person. |
| `code` | A stable error code, such as `WA-VL-001`, when the error has one. |
| `requestId` | The request's ID, on most errors. The `X-Request-ID` header always has it. |
| `errors` | On a validation error, each field that failed and why. |
| `details` | On some refusals, the entity or value that the refusal is about. |

```json Response (403) theme={null}
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "detail": "This personal access token works only on read-only Workspace operations",
  "code": "WA-PAT-005"
}
```

Use `code`, not `detail`, in code that handles an error. The
[API reference](https://developers.askparable.com/api-reference/overview.md#errors) lists the statuses.

## Next steps

> [card] [API reference](https://developers.askparable.com/api-reference/overview.md)
>
> Every operation, with parameters, response shapes, and SDK samples.

> [card] [Connectors](https://developers.askparable.com/connectors/overview.md)
>
> Provider connections, Taps, and how data reaches your Workspace.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.