Integrations
Get Connected Account
GET /me — Infipost Public API
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 · headerrequiredWorkspace 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"
}
}organizationobjectShow child attributes
idstringnamestringuserobjectnullOnly set for OAuth app tokens
Show child attributes
idstringnamestringnullpicturestringnullAbsolute URL of the user's avatar
Bài viết này có hữu ích không?