リファレンスHTTP APILinked accounts

The caller's linked accounts that are active or stale

GET
/v1/linked-accounts

Each item's expires_at is its provider token's expiry, null when no token is kept (every Slack link). API keys are refused.

Auth: cookie session only; no scope.

Authorization

cookieSession
cookie__Host-werft_session<token>

For the web console: the browser session cookie set by POST /v1/auth/login. It holds the scopes of the user's workspace role (owner: all; admin and member: all but sessions:recover). Requests other than GET must also send X-Requested-With: werft-web.

Response Body

Success

application/json
  1. response
items*array<>
Itemsitems <= 50
Example Request
curl -X GET 'https://example.com/v1/linked-accounts'
Example Response
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",      "provider": "slack",      "external_tenant": "string",      "external_user_id": "string",      "external_tenant_name": "string",      "external_user_name": "string",      "status": "active",      "verified_at": "2019-08-24T14:15:22Z",      "revision": 0,      "expires_at": "2019-08-24T14:15:22Z"    }  ]}