---
title: "Import User Context"
method: POST
path: "/api/v1/users/profile/import/{user_id}"
tags: ["profile"]
---

# Import User Context

`POST /api/v1/users/profile/import/{user_id}`

## Path parameters

- `user_id` union, required — The ID of the user
  - string, uuid4
  - string, uuid5

## Request body

- UserContextImport
  - `context` string, required — The user context you want to import to Memobase

## Response `200`

Successful Response

- BaseResponse
  - `data` object, nullable — Response data payload
  - `errno` 0 | 400 | 401 | 403 | 404 | 405 | 409 | 422 | 500 | 501 | 502 | 503 | 504 | 520
  - `errmsg` string — Error message, empty when success

## Other responses

- `422` — Validation Error

## Changes

- **2025-09-01** `c5d39efe16d8` — 1 info
  - for the `path` request parameter `user_id`, the type/format was generalized from `string`/`` to ``/``
- **2025-04-17** `ff75f1135b23` — 1 warning
  - added the new `520.00` enum value to the `errno` response property for the response status `200`
- **2025-03-29** `102136e2c6c1` — 1 info
  - endpoint added
- **2025-01-15** `a9bfbdf3d53b` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/memodb-io/apis/memobase-api/changes/api/v1/users/profile/import/:user_id/post.md)

---

[API](https://skmtc.dev/memodb-io/apis/memobase-api.md) · [All operations](https://skmtc.dev/memodb-io/apis/memobase-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/memodb-io/memobase-api/revisions/4543f130c8e0/schema)
