Gamma API

List worker credentials

GET
/api/organizations/{slug}/workers

Whether the organization's jobs run only on its own workers, the credentials those workers claim with (revoked ones too, newest first), and the job types one may be limited to.

Who may call it: An owner or security admin of the organization. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Host- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

slug*string

The organization's slug, as in its URL.

Response Body

OK.

application/json
  1. response
ownWorkersOnly*boolean

The organization's jobs run only on its own workers: the platform's never take one, even while none of its own is running. Off, its workers and the platform's share them.

credentials*array<>
jobTypes*array<string>
Example Request
curl -X GET 'http://localhost:3000/api/organizations/string/workers'
Example Response
{  "ownWorkersOnly": true,  "credentials": [    {      "id": "string",      "name": "string",      "types": [        "string"      ],      "start": "string",      "createdAt": "2019-08-24T14:15:22Z",      "lastUsedAt": "2019-08-24T14:15:22Z",      "revokedAt": "2019-08-24T14:15:22Z"    }  ],  "jobTypes": [    "string"  ]}