---
title: "Get a profile by primary key"
method: GET
path: "/indexes/{index-id}/profiles/{profile-id}"
tags: ["Profiles"]
---

# Get a profile by primary key

`GET /indexes/{index-id}/profiles/{profile-id}`

## Request

- Base URL: `https://app.amperity.com/api`
- URL: `https://app.amperity.com/api/indexes/{index-id}/profiles/{profile-id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/amperity/apis/amperity-profile-api/docs/indexes/:index-id/profiles/:profile-id/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve a specific profile by its ID

## Path parameters

- `index-id` string, required
- `profile-id` string, required

## Headers

- `Amperity-Tenant` string, required
- `Api-Version` string, required

## Response `200`

The requested profile

- ProfileResponse: A customer profile from an index.
  - `attributes` ListProfilesResponseDataAttributes, required: A map of key-value profile attributes. The specific keys and values depend on the index configuration.
  - `id` string, required: The id of a given profile
  - `index_id` string, required: The id of the index

## Other responses

- `400`: Invalid request
- `401`: Authentication Required
- `403`: Not Authorized
- `404`: Profile not found
- `405`: Method Not Allowed
- `500`: Internal Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/amperity/apis/amperity-profile-api.md) - [All operations](https://skmtc.dev/amperity/apis/amperity-profile-api/llms.txt) - [OpenAPI document](https://skmtc.dev/amperity/apis/amperity-profile-api/revisions/95532e60c7f5?raw)
