Skip to main content
GET
/
v1
/
auth
/
me
Get Current User Info
curl --request GET \
  --url https://api.letpiper.com/v1/auth/me \
  --header 'Authorization: Bearer <token>'
{
  "user": {
    "email": "jsmith@example.com",
    "first_name": "<string>",
    "last_name": "<string>",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "is_active": true,
    "timezone": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "status": "<string>",
    "invited_at": "2023-11-07T05:31:56Z"
  },
  "organizations": [
    {
      "name": "<string>",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "business_information": "<string>",
      "timezone": "<string>",
      "created_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "owner_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "role": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "is_system": true
      },
      "permissions": []
    }
  ]
}

Authorizations

Authorization
string
header
required

Platform token (starts with pat_)

Response

200 - application/json

Successful Response

User with their organizations.

user
UserRead · object
required

Schema for reading user data (response).

organizations
OrganizationWithRole · object[]
required