# Read workspace delegation

Which domains this workspace has delegated to us, per provider, each with its status and how many inboxes the grant has minted — plus the public half a domain administrator needs: our Google service account's client id and the scopes to authorise, and the Microsoft admin-consent URL. THE CREDENTIAL IS NEVER IN THIS ANSWER, and a deployment that cannot do Google delegation answers an empty client id rather than inviting consent for a key we do not hold. Any seat and not plan-gated, unlike every write beside it.

Access class: `workspace`.

## Endpoint

`GET /v1/workspace/delegation`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| body | query | null | No |
| params | query | object | No |
| query | query | object | No |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": [
    {
      "created_at": "string",
      "domain": "string",
      "id": "",
      "mailboxes": 1.5,
      "provider": "string",
      "status": "string",
      "status_detail": "string",
      "verified_at": "string"
    }
  ],
  "google": {
    "client_id": "",
    "scopes": [
      "string"
    ]
  },
  "microsoft": {
    "admin_consent_url": "string"
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
