---
title: "POST /identities/save-with-token"
method: POST
path: "/identities/save-with-token"
tags: ["identities"]
---

# POST /identities/save-with-token

`POST /identities/save-with-token`

Save identity.

## Request body

- object
  - `id` string — id of the identity to save
  - `orgId` string, required — org_id of the identity to save
  - `userId` string — user id of the identity to save
  - `type` 'linkedin' | 'google', required — type of the identity to save
  - `firstName` string — first name of the identity to save
  - `lastName` string — last name of the identity to save
  - `profileUrl` string — profile url of the identity to save
  - `profileId` string, required — profile id of the identity to save
  - `profilePictureUrl` string — profile picture url of the identity to save
  - `subscriptionTitles` string[], nullable — subscription titles of the identity to save
  - `headline` string — headline of the identity to save
  - `token` string, required — identity token
  - `activeCredentials` object[] — active credentials of the identity to save - FFR - will be removed soon
    - `sessionCookie` string, required
    - `userAgent` string
  - `activeCredential` object — active credential of the identity to save - will replace activeCredentials soon
    - `sessionCookie` string, required
    - `userAgent` string

## Response `200`

Identity successfully saved or updated.

## Other responses

- `500` — Unexpected error while saving the identity.

---

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