Purpose
/guilds/{guild_id}/private_channels/shared/{user_id}List private text channels that both the bot and a specific user can access.
Returns channels that are not visible to @everyone but are accessible to both the bot and the specified user.
- guild_id: Discord guild ID
- user_id: Discord user ID to check shared access with
Authentication
Send a tenant API key as Authorization: Bearer <key> or X-API-Key: <key>. Keep keys server-side and use the account slug for the connected Discord account.
Parameters
Request example
Replace the tenant, account, and resource placeholders before running this read-only request.
curl --fail-with-body \
-H "Authorization: Bearer ${DATAZ_API_KEY}" \
"https://dataz.md/gateway/v1/{tenant_slug}/accounts/{account_slug}/guilds/{guild_id}/private_channels/shared/{user_id}"
Response schema
Response example
Representative JSON shape. The live response can include additional documented fields.
[
{
"id": "123456789012345678",
"name": "example-channel",
"type": 0,
"guild_id": "123456789012345678"
}
]
Errors
Limits and pagination
- This endpoint does not expose cursor pagination in its current public contract.
- Provider or demo limits can return HTTP 429. Wait for the
Retry-Afterinterval before retrying.
Related tutorials
Read-only notes
This reference page documents a public GET endpoint. Setup/token, AI, dev, internal, and mutating routes are excluded from static reference generation.