---
title: "Get a saved classify config"
---

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

# Get a saved classify config

Path: CloudRaker Paperwork API › Configs

`GET /v1/classify/configs/{idOrSlug}`

Returns one saved classify config with its stored `config`.

The id and the slug are interchangeable here and everywhere a config is referenced.

**Learn more:** [Classify capability](https://docs.cloudraker.com/paperwork/capabilities/classify)

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `idOrSlug` (`getClassifyConfig.path.idOrSlug`; string, required)
  - minLength 1

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/v1/classify/configs/<idOrSlug>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/classify/configs/<idOrSlug>';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/v1/classify/configs/<idOrSlug>"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The saved config.

#### Example

```json
{
  "object": "config",
  "id": "string",
  "slug": "string",
  "name": "string",
  "capability": "extract",
  "config": {
    "property1": null,
    "property2": null
  },
  "updatedAt": "string",
  "revision": 1
}
```

- `object` (`getClassifyConfig.response.200.object`; string, required)
- `id` (`getClassifyConfig.response.200.id`; string, required)
- `slug` (`getClassifyConfig.response.200.slug`; string, required)
- `name` (`getClassifyConfig.response.200.name`; string, required)
- `capability` (`getClassifyConfig.response.200.capability`; string, required)
  - one of `"extract"`, `"redact"`, `"fill"`, `"sign"`, `"classify"`, `"split"`, `"compose"`
- `config` (`getClassifyConfig.response.200.config`; map<unknown>, required)
- `updatedAt` (`getClassifyConfig.response.200.updatedAt`; string, optional)
- `revision` (`getClassifyConfig.response.200.revision`; integer, optional) — The number of the saved config. It starts at 1, and each update that changes `config` adds one. Each run reports the revision it used, in `config.revision`.
  - min 1; max 9007199254740991

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`getClassifyConfig.response.400.success`; boolean, required)
  - one of `false`
- `error` (`getClassifyConfig.response.400.error`; array<unknown>, required)
- `data` (`getClassifyConfig.response.400.data`; unknown, required)

### 404

Unknown id or slug, or a config of another capability.

### 429

Rate limited. The `/v1` API allows at least **67 requests per minute per organization** (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the `Retry-After` interval and retry — the error is `retryable`.

#### Example

```json
{
  "code": "rate_limited",
  "message": "string",
  "retryable": true,
  "requestId": "string",
  "docUrl": "string"
}
```

- `code` (`getClassifyConfig.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`getClassifyConfig.response.429.message`; string, required)
- `retryable` (`getClassifyConfig.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`getClassifyConfig.response.429.requestId`; string, required)
- `docUrl` (`getClassifyConfig.response.429.docUrl`; string, optional)


Source: https://docs.cloudraker.com/paperwork/api/configs/get-classify-config/index.md
