Skip to Content
Docs

Return where a source the caller can read lives

GET
/api/sources/{source_id}/workspace

The workspace a source lives in ({kind, team_id}), so a link to it opened from another workspace can go there first. A source another team shares with the caller's team lives in that receiving team. 404 when the caller cannot see the source. Args: source_id: The source's id.

Returns: Response: {"success", "workspace"}, or 404 for a source the caller can't read (missing, someone else's, or a team they left).

Personal access token scope: sources:read.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Path Parameters

source_id*string

Response Body

Success

Example Request
curl -X GET 'http://localhost:7091/api/sources/string/workspace'
Example Response200
Empty