---
title: "List the accessible streams"
method: GET
path: "/_api/key/{keyid}/database/{dbname}/stream"
tags: ["API Keys"]
---

# List the accessible streams

`GET /_api/key/{keyid}/database/{dbname}/stream`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_api/key/:keyid/database/:dbname/stream/get.ts> (a function with typed inputs; its response is checked against the schema)

Fetch the list of streams available to the specified *keyid*.

The call returns per-stream access privileges for the specified keyid. The *result* object contains the stream names as object keys and the associated privileges for the stream as values.

 If access level for stream is not set the default("&#42;") access level is used. If default("&#42;") access level is also not set the database access level is used.

**Note**: Requires *administrator* permissions.

## Path parameters

- `dbname` string, string, required
- `keyid` string, string, required

## Query parameters

- `full` boolean

## Response `200`

Successfully fetched streams.

- ApiKeyDatabaseStreamGetHttpExamplesRc200
  - `code` integer: HTTP response code.
  - `error` boolean, required: Flag if there is an error in response. *False* for this response.
  - `result` object
    - `c8locals.streamTest` string

## Other responses

- `400`: Failed due to missing or malformed data. Verify that all parameters are complete.
- `401`: Failed because you do not have administrator permissions.
- `403`: Failed because you do not have access to the server.
- `404`: Failed to find specified API key.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
