---
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

> 41 revisions in range; 11 could not be searched.

- **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)
