---
title: "Import a mapping table into a context."
method: POST
path: "/api/contexts/{name}/entries/import"
tags: ["Contexts"]
---

# Import a mapping table into a context.

`POST /api/contexts/{name}/entries/import`

Imports token-to-replacement mappings (as produced by the export endpoint) into a context. By default an incoming token that already exists in the context is skipped; pass on_conflict=overwrite to replace existing replacements instead. Requires the `contexts:write` scope.

## Path parameters

- `name` string, required

## Query parameters

- `on_conflict` string
- `owner` string

## Headers

- `Authorization` string, required

## Request body

- string

## Response `200`

OK

## Other responses

- `400` — The payload or on_conflict value is invalid.
- `401` — Unauthorized
- `404` — Context not found.
- `413` — Content Too Large
- `415` — Unsupported Media Type
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/philterd/apis/philter-api.md) · [All operations](https://skmtc.net/philterd/apis/philter-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/philterd/philter-api/versions/67443cd5a65b/schema)
