Skip to main content

Get Current User Info

Get the current user information.

Response

id
string
The user’s unique identifier
email
string
The user’s email address
first_name
string
The user’s first name
last_name
string
The user’s last name
created_at
string
When the user was created (ISO 8601 format)
updated_at
string
When the user was last updated (ISO 8601 format)
curl --location --request GET 'https://api.plaisolutions.com/me' \
--header 'Authorization: Bearer YOUR_TOKEN'

Update Profile

Update the current user’s profile information.

Request Body

first_name
string
Updated first name
last_name
string
Updated last name
email
string
Updated email address

Response

Returns the updated user object with the same structure as the GET /me endpoint.
curl --location --request PATCH 'https://api.plaisolutions.com/me' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
  "first_name": "John",
  "last_name": "Doe"
}'

List Current User Invitations

List all invitations for the current user.

Response

invitations
array
Array of invitation objects
curl --location --request GET 'https://api.plaisolutions.com/me/invitations' \
--header 'Authorization: Bearer YOUR_TOKEN'

Get Current User Invitation

Get a specific invitation for the current user.

Path Parameters

invitation_id
string
required
The unique identifier of the invitation

Response

Returns a single invitation object with the same structure as described in the list invitations endpoint.
curl --location --request GET 'https://api.plaisolutions.com/me/invitations/inv_123' \
--header 'Authorization: Bearer YOUR_TOKEN'

Reply to Invitation

Reply to an invitation by accepting or declining it.

Path Parameters

invitation_id
string
required
The unique identifier of the invitation

Request Body

accept
boolean
required
Whether to accept (true) or decline (false) the invitation

Response

organization
object
Organization details if invitation was accepted, otherwise null
curl --location --request POST 'https://api.plaisolutions.com/me/invitations/inv_123/reply' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
  "accept": true
}'