Get Organization Info

Get Organization Info

GET https://{server_address}/api/organization/profile

Get own organization information.

Headers

Name
Type
Description

Authorization*

Bearer {access_token}

{
   "id": 658,
   "name": "My Awesome Organization",
   "isActive": true,
   "type": "BUSINESS",
   "tz": "Europe/Kiev",
   "logoUrl": "/static/logo.png",
   "lastModifiedTs": 1694707051504,
   "tokenGroup": {
      "serverTokens": [
         {
            "name": "API Token",
            "orgId": 658,
            "clientId": "oa2-client-id_JVnTSCOTc6rXmMFN1ELrj70Cy9fX1-EJ",
            "secret": "s3C5r8-gMHIvr-dnDo5QAcJv3Y1ZyHOxpaHUspD-"
         }
      ]
   },
   // some other fields
}

Request examples:

# curl command example:
$ curl -H "Authorization: Bearer {accessToken}" https://fra1.blynk.cloud/api/organization/profile
$ curl -H "Authorization: Bearer eIdWHQqRfFmvP5LDDh-IGxPUzi7I27HthzCPAVmS" https://fra1.blynk.cloud/api/organization/profile

# httpie command exmaple:
$ https -A bearer -a {accessToken} fra1.blynk.cloud/api/organization/profile
$ https -A bearer -a eIdWHQqRfFmvP5LDDh-IGxPUzi7I27HthzCPAVmS fra1.blynk.cloud/api/organization/profile

Last updated

Revision created