Users
User Profile
Changed onThis endpoint returns information about the company and the user associated to the token.
get/api/external/v2/me
Request
- Base URLhttps://app.pennylane.com
- URLhttps://app.pennylane.com/api/external/v2/me
- AuthOAuth 2Authorization code: https://app.pennylane.com/oauth/authorizeToken URL: https://app.pennylane.com/oauth/oauth/token
Headers
X-Company-Idstring
Example:12345
Numeric ID of the company to act on. Required when authenticating with a firm token. Ignored when the token is already bound to a company.
Response
Returns the user and the company
Example response
{
"user": {
"id": 12345,
"first_name": "John",
"last_name": "Doe",
"email": "jdoe@pennylane.com",
"locale": "fr"
},
"company": {
"id": 123456,
"name": "Pennylane",
"reg_no": "123456789",
"accounting_logic": "FR_PCG"
},
"scopes": [
"customer_invoices",
"suppliers"
]
}Changes
- warning
added the new
ES_PGCenum value to the/response property for the response status - info
added the new optional
headerrequest parameterX-Company-Id
- warning