> For the complete documentation index, see [llms.txt](https://developerdocs.instructure.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developerdocs.instructure.com/services/journey/api/permissions.md). Agents can also search and read this documentation through its [MCP server](https://developerdocs.instructure.com/~gitbook/mcp).

# Permissions

Journey does not maintain its own roles or access-control lists. Once a request has been authenticated (see [authentication](https://developerdocs.instructure.com/services/journey/api/authentication.md)), Journey delegates authorization to Canvas by calling the Canvas account permissions API for the caller against a target account. A user's effective permissions on a Journey resource are whatever Canvas reports for that user on the resource's account.

## How permission checks work

Endpoints that require a Canvas permission resolve a target `accountId` and then ask Canvas whether the caller holds the required permission on that account. The account is resolved from the request — typically the `accountId` API argument, falling back to the `x-canvas-account-id` header. When an endpoint does not name a specific permission, the default check is `read_as_admin`.

Different endpoints require different Canvas permissions depending on what they do — for example a course-management endpoint may require `manage_courses_admin`. The required permission and the account it is checked against are part of each endpoint's contract.

Some endpoints perform a **non-throwing** check instead: they look up whether the caller is a Canvas admin and adjust their behavior accordingly (for example returning a richer result for admins) rather than rejecting non-admins outright.

## 401 vs 403

`401 Unauthorized` means the request has no valid Canvas JWT — see [authentication](https://developerdocs.instructure.com/services/journey/api/authentication.md). `403 Forbidden` means the JWT was accepted but the caller lacks the required Canvas permission on the resolved account, or the account ID could not be resolved from the request. Depending on how Canvas responds, a denied permission may surface as either status — Canvas explicitly denying access maps to `403`, while a permission key that is present-but-false in Canvas's response may surface as `401`. For the response envelope, see [errors](https://developerdocs.instructure.com/services/journey/api/errors.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developerdocs.instructure.com/services/journey/api/permissions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
