---
title: "Retrieve the profile schema"
method: GET
path: "/schemas/profiles"
tags: ["account"]
---

# Retrieve the profile schema

`GET /schemas/profiles`

## Request

- Base URL: `https://api.pscrpt.com/v1`
- URL: `https://api.pscrpt.com/v1/schemas/profiles`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://api.pscrpt.com/oauth/authorize`
    - Token URL: `https://api.pscrpt.com/oauth/token` scopes: `profiles:read`

## Headers

- `Postscript-Version` string, date

## Response `200`

The property's custom profile attributes.

- DiscoveredSchemaEnvelope
  - `data` DiscoveredSchema, required
    - `fields` object[], required
      - `first_seen_at` string, date-time, required
      - `path` string, required: Dot-separated path, so a key containing a dot reads as nested. `*` stands for an array index.
      - `type` string, required
  - `meta` Meta, required
    - `as_of` string, date-time
    - `livemode` boolean, required
    - `page` PageMeta
      - `limit` integer, required
      - `next_cursor` string, nullable, required: Pass as `page[after]`. Null on the last page.
    - `request_id` string, required
    - `resolved_from` string: The merged-away profile ID the request addressed; `data` holds the survivor.
    - `revision` string, date, required

## Other responses

- `400`: Malformed input, an unknown parameter, an unsupported filter, sort, or expand, or a mistyped ID.
- `401`: Missing or invalid API key.
- `403`: The key lacks the required scope.
- `429`: Rate limit exceeded.
- `500`: Internal error.
- `502`: Upstream provider failure.
- `503`: Temporarily unavailable.

## Changes

- **2026-10-21** `63cc6764cadb`: 2 info
  - the security scope `profiles:read` was added to the endpoint's security scheme `oauth2`
  - the security scope `accounts:read` was removed from the endpoint's security scheme `oauth2`
- **2026-10-19** `aee67d08657e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pscrpt/apis/postscript-native-api-beta/changes/schemas/profiles/get.md)

---

[API](https://skmtc.dev/pscrpt/apis/postscript-native-api-beta.md) - [All operations](https://skmtc.dev/pscrpt/apis/postscript-native-api-beta/llms.txt) - [OpenAPI document](https://skmtc.dev/pscrpt/apis/postscript-native-api-beta/revisions/882458ee1f36?raw)
