# Preview an invitation sent to a verified address on your account.

> Hosted dashboard only.
> https://koi.dog/docs/api/workspace-team/get-workspace-invitation/

`GET /api/v1/workspace-team/invitations/{id}` · Key: `session only`

A preview does not create a membership or switch workspaces. Use a Clerk session token at `https://app.koi.dog/api/v1`.

## Path parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | The workspace team invitation's id. |

## Response.

200 OK · JSON object

## Request.

```sh
# Requires a Clerk dashboard session token.
curl "https://app.koi.dog/api/v1/workspace-team/invitations/$ID" \
    -H "Authorization: Bearer $KOIDOG_CLERK_SESSION"
```

```js
// Requires a Clerk dashboard session token.
const res = await fetch(`https://app.koi.dog/api/v1/workspace-team/invitations/${process.env.ID}`, {
  headers: {
    Authorization: `Bearer ${process.env.KOIDOG_CLERK_SESSION}`,
  },
});
console.log(await res.json());
```

```python
import os

import requests

# Requires a Clerk dashboard session token.
r = requests.get(
    f"https://app.koi.dog/api/v1/workspace-team/invitations/{os.environ['ID']}",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_CLERK_SESSION']}",
    },
)
r.raise_for_status()
print(r.json())
```

## Response example.

```json
{
  "workspace": {
    "id": "string",
    "name": "string"
  },
  "accepted": false
}
```
