# Approved codes to write back (GET /v1/catalog/sync/codes)

> GET /v1/catalog/sync/codes: Approved codes to write back. border.bot API reference (Catalogue).

Source: https://border.bot/docs/api/catalog-sync-codes

> Documentation index: https://border.bot/llms.txt. Every page is Markdown at its URL + `.md`.

`GET https://api.border.bot/v1/catalog/sync/codes`

Requires an API key (`Authorization: Bearer bb_live_…`).

For connectors: the approved codes (and origins) of a connection’s records, approved after `since`, to write back to the source in its own fields. Free.

API key scope: `catalog`.

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `sourceKind` | string | yes |  |
| `connection` | string | yes |  |
| `since` | string (date-time) | no | Only codes approved after this time. |

## Responses

- `200`: One entry per record and approved code. (`CatalogSyncCodesResponse`)
- `400`: Invalid input (`invalid_input`). (`Error`)
- `401`: Missing, invalid, revoked or expired API key (`unauthorized`). (`Error`)
- `403`: The API key doesn’t have the `catalog` scope (`forbidden`, `details.reason: "missing_scope"`). (`Error`)
- `429`: Rate limited (`rate_limited`). Retry after `Retry-After` seconds; `RateLimit` says which limit was hit (`r=0`, `t` seconds until its window ends) and `RateLimit-Policy` its quota. (`Error`)
- `500`: Unexpected error (`internal`). (`Error`)

## Example

```bash
curl -X GET 'https://api.border.bot/v1/catalog/sync/codes' \
  -H 'Authorization: Bearer bb_live_...'
```
