---
title: "User Profile"
method: GET
path: "/api/external/v2/me"
tags: ["Users"]
---

# User Profile

`GET /api/external/v2/me`

## Request

- Base URL: `https://app.pennylane.com`
- URL: `https://app.pennylane.com/api/external/v2/me`
- Auth: OAuth 2
  - Authorization code: `https://app.pennylane.com/oauth/authorize`
  - Token URL: `https://app.pennylane.com/oauth/oauth/token`

This endpoint returns information about the company and the user associated to the token.

## Headers

- `X-Company-Id` string

## Response `200`

Returns the user and the company

- object
  - `user` object, nullable, required
    - `id` integer, required
    - `first_name` string, required
    - `last_name` string, required
    - `email` string, email, required
    - `locale` 'fr' | 'en' | 'de', required
  - `company` object, required
    - `id` integer, required
    - `name` string, required
    - `reg_no` string, required
    - `accounting_logic` 'FR_PCG' | 'FR_AGRICULTURE' | 'FR_NON_PROFIT' | 'FR_NOTARY' | 'DE_SKR03' | 'DE_SKR04' | 'ES_PGC', required: Chart of accounts framework used by the company.
  - `scopes` string[], required: OAuth scopes associated with the access token

## Other responses

- `400`: Bad request
- `401`: Access token is missing or invalid
- `403`: Access to this resource forbidden

## Changes

- **2026-11-03** `871f863307e5`: 1 warning, 1 info
  - added the new `ES_PGC` enum value to the `company/accounting_logic` response property for the response status `200`
  - added the new optional `header` request parameter `X-Company-Id`

[Operation history](https://skmtc.dev/pennylane/apis/company-v2/changes/api/external/v2/me/get.md)

---

[API](https://skmtc.dev/pennylane/apis/company-v2.md) - [All operations](https://skmtc.dev/pennylane/apis/company-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/pennylane/apis/company-v2/revisions/871f863307e5?raw)
