profiles

Create a profile

Changed on
post/profiles

Request

  • Base URL
    https://api.pscrpt.com/v1
  • URL
    https://api.pscrpt.com/v1/profiles
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization code: https://api.pscrpt.com/oauth/authorize
      Token URL: https://api.pscrpt.com/oauth/token scopes: profiles:write

Headers

Idempotency-Keystring

Deduplicates retries for 24 hours: the same key returns the original response with Idempotency-Replayed: true; the same key with a different body returns 409 idempotency_key_reused.

Postscript-Versionstring date
Example:2026-07-23

Overrides the key's pinned API revision for this request.

Request body

attributesobject

Custom attributes.

Example request

{
  "identifiers": [
    {
      "type": "email"
    }
  ]
}

Response

The created profile.

Example response

{
  "data": {
    "consents": [
      {
        "channel": "sms",
        "consented_at": "2026-07-23T17:32:01.123456Z",
        "identifier": {
          "created_at": "2026-07-23T17:32:01.123456Z",
          "type": "email",
          "updated_at": "2026-07-23T17:32:01.123456Z",
          "verified_at": "2026-07-23T17:32:01.123456Z"
        },
        "method": "checkout",
        "updated_at": "2026-07-23T17:32:01.123456Z"
      }
    ],
    "created_at": "2026-07-23T17:32:01.123456Z",
    "identifiers": [
      {
        "created_at": "2026-07-23T17:32:01.123456Z",
        "type": "email",
        "updated_at": "2026-07-23T17:32:01.123456Z",
        "verified_at": "2026-07-23T17:32:01.123456Z"
      }
    ],
    "updated_at": "2026-07-23T17:32:01.123456Z"
  }
}

Changes

    • info

      added the optional property / to the response with the status

    • breaking

      removed the required property // from the response with the status

    • info

      removed subschema #1 from the / response property allOf list for the response status

    • info

      the response property // became required for the status