> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Unipile: Get User Profile

> Get a profile by provider ID or public identifier. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Get a profile by provider ID or public identifier.

> [!NOTE]
>
> Tool ID: `unipile_get_user_profile`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'unipile_get_user_profile',
  {
    "identifier": "example_123",
    "account_id": "123456789"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute unipile_get_user_profile --input '{
  "identifier": "example_123",
  "account_id": "123456789"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "object": "example",
    "provider": "example",
    "provider_id": "provider_123"
  }
}
```

Use `deepline describe unipile_get_user_profile --json` for the latest machine-readable contract.

## Input reference

Retrieve a user profile by provider public ID or internal ID. For LinkedIn, pass the public identifier (e.g. 'satyanadella') or provider\_id.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.identifier` | `string` | Yes | — | Provider public ID or internal ID |
| `payload.account_id` | `string` | Yes | — | Connected account ID |
| `payload.linkedin_sections` | `array` | No | — | LinkedIn profile sections to include, e.g. \["\*"] for all or \["experience","skills"]. |
| `payload.linkedin_api` | `"recruiter" \| "sales_navigator"` | No | — | Use the account's Recruiter or Sales Navigator seat instead of classic LinkedIn. Allowed: `recruiter`, `sales_navigator`. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Retrieve a user profile by provider public ID or internal ID. For LinkedIn, pass the public identifier (e.g. 'satyanadella') or provider_id.",
    "properties": {
      "identifier": {
        "type": "string",
        "description": "Provider public ID or internal ID"
      },
      "account_id": {
        "type": "string",
        "description": "Connected account ID"
      },
      "linkedin_sections": {
        "type": "array",
        "description": "LinkedIn profile sections to include, e.g. [\"*\"] for all or [\"experience\",\"skills\"].",
        "items": {
          "type": "string"
        }
      },
      "linkedin_api": {
        "type": "string",
        "description": "Use the account's Recruiter or Sales Navigator seat instead of classic LinkedIn.",
        "enum": [
          "recruiter",
          "sales_navigator"
        ]
      }
    },
    "required": [
      "identifier",
      "account_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.object` | `string` | No | — | — |
| `result.data.provider` | `string` | No | — | — |
| `result.data.provider_id` | `string` | No | — | Provider internal ID |
| `result.data.public_identifier` | `string` | No | — | Provider public ID |
| `result.data.first_name` | `string` | No | — | — |
| `result.data.last_name` | `string` | No | — | — |
| `result.data.headline` | `string` | No | — | — |
| `result.data.location` | `string` | No | — | — |
| `result.data.profile_picture_url` | `string` | No | — | — |
| `result.data.is_relationship` | `boolean` | No | — | Whether the user is a connection |
| `result.data.network_distance` | `string` | No | — | LinkedIn network distance |
| `result.data.full_name` | `string \| null` | No | — | Full name derived from first\_name and last\_name. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "object": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider internal ID"
          },
          "public_identifier": {
            "type": "string",
            "description": "Provider public ID"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "headline": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "profile_picture_url": {
            "type": "string"
          },
          "is_relationship": {
            "type": "boolean",
            "description": "Whether the user is a connection"
          },
          "network_distance": {
            "type": "string",
            "description": "LinkedIn network distance"
          },
          "full_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Full name derived from first_name and last_name."
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Unipile provider guide](/docs/providers/unipile/guide.md)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart.md)
* [SDK reference](/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.