# List where an issue can be created (https://notert.io/docs/api/reference/list-where-an-issue-can-be-created)

`GET /api/v1/issues/destinations`

Where an issue can be created, as the token's holder: the repositories of the workspace's GitHub that take issues, by owner/name, or the teams of its Linear, by id and name.

Access: A token with requests:manage.

## Query parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `tracker` | string | Yes | The tracker: github or linear, either one the workspace connected. One of: `linear`, `github`. |

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `items` | object[] | The repositories or teams the app may create an issue in. |
| `items.id` | string | What a create takes as destination: a repository as owner/name on GitHub, a team's id in Linear. |
| `items.name` | string | Its name in the tracker. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 401 | `UNAUTHORIZED` | Send a valid API token as a Bearer token. |
| 403 | `HOLDER_NOT_ALLOWED` | The teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. |
| 403 | `INSUFFICIENT_SCOPE` | This API token can't change or delete requests, their status or their place on the roadmap. Create one that may in the workspace's settings. |
| 403 | `NETWORK_NOT_ALLOWED` | This API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. |
| 403 | `NO_SEAT` | This workspace's plan has no seat for you. |
| 403 | `WORKSPACE_SUSPENDED` | This workspace is suspended. |
| 409 | `CHANGED_MEANWHILE` | Something changed meanwhile. Try again. |
| 409 | `TRACKER_NOT_CONNECTED` | This workspace hasn't connected that tracker, or it no longer lets Notert in. An owner or admin can connect it on the Integrations page. |
| 409 | `TRACKER_PAUSED` | That tracker is paused, since the workspace has more integrations than its plan includes. |
| 409 | `TRACKER_REFUSED` | The tracker refused that: the issue, repository or team may not exist, or the app may not see it. |
| 409 | `TRACKER_UNAVAILABLE` | The tracker didn't answer. Try again in a moment. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl "https://app.notert.io/api/v1/issues/destinations?tracker=github" \
  -H "Authorization: Bearer $NOTERT_API_TOKEN"
```

## Example response 200

```json
{
  "items": [
    {
      "id": "acme/web",
      "name": "acme/web"
    }
  ]
}
```
