---
title: "Lookup returns saved user profile."
method: POST
path: "/v1/lookup"
---

# Lookup returns saved user profile.

`POST /v1/lookup`

Returns the saved user profile for a user.

## Request body

- LookupContext
  - `userId` string, required

## Response `200`

Valid response

- UserProfile
  - `experimentBucketMap` ExperimentBucketMap
    - `your_experiment_id` YourExperimentId
      - `variation_id` string
  - `userId` string

## Other responses

- `400` — Missing required parameters
- `401` — Unauthorized, invalid JWT
- `403` — You do not have necessary permissions for the resource
- `500` — User Profile Service not found

## Changes

- **2023-05-22** `b03cfe30eb69` — 3 breaking, 3 info
  - the request's body type/format changed from ``/`` to `object`/``
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - the response's body type/format changed from ``/`` to `object`/`` for status `403`
  - added the media type `application/json` for the response with the status `400`
  - …2 more
- **2022-02-11** `13dd0aacd7f9` — 1 info
  - endpoint added
- **2019-08-29** `6933bf16666a` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/optimizely/apis/optimizely-agent-api/changes/v1/lookup/post.md)

---

[API](https://skmtc.dev/optimizely/apis/optimizely-agent-api.md) · [All operations](https://skmtc.dev/optimizely/apis/optimizely-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/optimizely/optimizely-agent-api/revisions/8aa6750d4b77/schema)
