infipostdocs
Integrations

Get Connected Account

GET /me — Infipost Public API

GET/public/v1/me

Returns the workspace these credentials act on. With an OAuth app token it also returns the Infipost user who approved the app, so your integration can show who is connected. API keys belong to the whole workspace, so `user` is `null`.

cURL
curl --request GET \
  --url 'https://api.infipost.asia/public/v1/me' \
  --header 'Authorization: YOUR_API_KEY'

Authorization

Authorizationstring · headerrequired

Workspace API key or OAuth access token. Send the token directly without a Bearer prefix.

Response

Connected workspace and user

application/json
{
  "organization": {
    "id": "cm4ean69r0003w8w1cdomox9n",
    "name": "My Company"
  },
  "user": {
    "id": "cm4eamz9f0001w8w1k2b7x0ab",
    "name": "Nevo David",
    "picture": "https://uploads.postiz.com/avatar.jpg"
  }
}
organizationobject
Show child attributes
idstring
namestring
userobjectnull

Only set for OAuth app tokens

Show child attributes
idstring
namestringnull
picturestringnull

Absolute URL of the user's avatar