curl --request GET \
  --url 'http://localhost:6789/api/pipelines/oauth_access_tokens/logs?_limit=20&_offset=0&show_all=1&api_key=zkWlN0PkIKSN0C11CfUHUj84OT5XOJ6tDZ6bDRO2' \
  --header 'OAUTH-TOKEN=some_really_long_string' \
{
  "oauth_access_tokens": [
    {
      "expires": "2023-08-18 23:41:52.480598+00:00",
      "token": "JS3Umh826UoZzbuGQUsj36PSBwruVCzQYlRFf3KmJWA",
      "user_id": 2
    },
    {
      "expires": "2023-08-18 23:41:51.418942+00:00",
      "token": "bScSh2uTtnjMlfOjMqyytvbXj1HHQ-CJJt17qIzaP9g",
      "user_id": 2
    },
    {
      "expires": "2023-08-11 18:37:52.832016+00:00",
      "token": "ZBVozeqrPgnF-CoaUHEzMW1BbDJS2o66EJ6T2XOk2xE",
      "user_id": 2
    },
    {
      "expires": "2023-08-07 20:34:40.608736+00:00",
      "token": "dAq4jS5XaPrntFMIcQMNaXpKEUyi2ajAsgqAWXFw1fI",
      "user_id": 2
    },
    {
      "expires": "2023-08-04 20:28:16.966716+00:00",
      "token": "tQYy-W363hpWK7JRHur8gOFb-3BFe6Tp9afWDGtrQh4",
      "user_id": 2
    },
    {
      "expires": "2023-08-01 01:24:37.132478+00:00",
      "token": "dUSVnZc_8JirhcB1QHXqyFTIUFwwpoWLdHT4I8Fuxmc",
      "user_id": 2
    },
    {
      "expires": "2023-08-01 01:24:36.096940+00:00",
      "token": "Uv2C4YklZaKtEPFigzGblFZ8fCx33598ZvZ3JJCyDiw",
      "user_id": 2
    }
  ],
  "metadata": {
    "count": 7,
    "next": false
  }
}

GET /api/oauth_access_tokens

_limit
integer

Maximum number of logs to be returned in the API response.

Example: 20

_offset
integer

Read logs after N number of logs, where N equals _offset.

Example: 10

show_all
integer

If show_all isn’t present, then only show active OAuth access tokens for the current user.

If show_all is 1, then show active and expired OAuth access tokens for the current user.

Example: 1

curl --request GET \
  --url 'http://localhost:6789/api/pipelines/oauth_access_tokens/logs?_limit=20&_offset=0&show_all=1&api_key=zkWlN0PkIKSN0C11CfUHUj84OT5XOJ6tDZ6bDRO2' \
  --header 'OAUTH-TOKEN=some_really_long_string' \
{
  "oauth_access_tokens": [
    {
      "expires": "2023-08-18 23:41:52.480598+00:00",
      "token": "JS3Umh826UoZzbuGQUsj36PSBwruVCzQYlRFf3KmJWA",
      "user_id": 2
    },
    {
      "expires": "2023-08-18 23:41:51.418942+00:00",
      "token": "bScSh2uTtnjMlfOjMqyytvbXj1HHQ-CJJt17qIzaP9g",
      "user_id": 2
    },
    {
      "expires": "2023-08-11 18:37:52.832016+00:00",
      "token": "ZBVozeqrPgnF-CoaUHEzMW1BbDJS2o66EJ6T2XOk2xE",
      "user_id": 2
    },
    {
      "expires": "2023-08-07 20:34:40.608736+00:00",
      "token": "dAq4jS5XaPrntFMIcQMNaXpKEUyi2ajAsgqAWXFw1fI",
      "user_id": 2
    },
    {
      "expires": "2023-08-04 20:28:16.966716+00:00",
      "token": "tQYy-W363hpWK7JRHur8gOFb-3BFe6Tp9afWDGtrQh4",
      "user_id": 2
    },
    {
      "expires": "2023-08-01 01:24:37.132478+00:00",
      "token": "dUSVnZc_8JirhcB1QHXqyFTIUFwwpoWLdHT4I8Fuxmc",
      "user_id": 2
    },
    {
      "expires": "2023-08-01 01:24:36.096940+00:00",
      "token": "Uv2C4YklZaKtEPFigzGblFZ8fCx33598ZvZ3JJCyDiw",
      "user_id": 2
    }
  ],
  "metadata": {
    "count": 7,
    "next": false
  }
}

Was this page helpful?