oauth

Get the groups for a token

Changed on

Get the list of groups a token can be used to access.

get/oauth/token/{id}/groups

Request

  • Base URL
    https://api.twinehealth.com/pub
  • Auth
    OAuth 2
    Client credentials
    Token URL: /oauth/token scopes: group, organization

Path parameters

idstring required

Token identifier

Response

OK

Example response

{
  "meta": {
    "req_id": "ab554093-6081-4d37-aa7b-ca6312367ca4",
    "count": 1
  },
  "links": {
    "self": "/pub/oauth/token/5817a24d678a7c2cbf5df3ee/groups"
  },
  "data": [
    {
      "type": "group",
      "id": "5755db2a3db4179179999acf",
      "attributes": {
        "name": "Patients Lead"
      },
      "links": {
        "self": "/pub/group/5755db2a3db4179179999acf"
      }
    }
  ]
}

Changes

    • info

      the endpoint scheme security OAuth2 was added to the API

    • info

      the endpoint scheme security twine_auth was removed from the API