Canvas LMS · Arazzo Workflow

Canvas LMS Author in the Current User's First Course

Version 1.0.0

Identify the authenticated teacher, pick their first taught course, and author an assignment.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub Learning ManagementEducationEdTechLMSLTIHigher EducationK-12Open-SourceAGPLCanvasArazzoWorkflows

Provider

canvas-lms

Workflows

self-courses-and-create-assignment
Create an assignment in the authenticated teacher's first course.
Reads the current user, lists the courses they teach, and creates an assignment in the first one returned.
3 steps inputs: name, pointsPossible outputs: assignmentId, courseId
1
getSelf
Read the authenticated user to confirm the session and capture the user id.
2
listTaughtCourses
List the courses the authenticated user teaches and take the first one as the authoring target.
3
createAssignment
Create the assignment in the teacher's first course.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Canvas LMS Author in the Current User's First Course
  summary: Identify the authenticated teacher, pick their first taught course, and author an assignment.
  description: >-
    A self-service authoring flow for Canvas. The workflow reads the
    authenticated user, lists the courses they teach, and creates an assignment
    in the first such course — letting a signed-in instructor add an assignment
    without knowing a course id up front. Every step spells out its request
    inline so the flow can be read and executed without opening the underlying
    OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: assignmentsApi
  url: ../openapi/canvas-lms-assignments-api-openapi.yml
  type: openapi
- name: coursesApi
  url: ../openapi/canvas-lms-courses-api-openapi.yml
  type: openapi
- name: usersApi
  url: ../openapi/canvas-lms-users-api-openapi.yml
  type: openapi
workflows:
- workflowId: self-courses-and-create-assignment
  summary: Create an assignment in the authenticated teacher's first course.
  description: >-
    Reads the current user, lists the courses they teach, and creates an
    assignment in the first one returned.
  inputs:
    type: object
    required:
    - name
    - pointsPossible
    properties:
      name:
        type: string
        description: The name of the assignment to create.
      pointsPossible:
        type: number
        description: The maximum points for the assignment.
  steps:
  - stepId: getSelf
    description: >-
      Read the authenticated user to confirm the session and capture the user
      id.
    operationId: getSelf
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      selfId: $response.body#/id
      name: $response.body#/name
  - stepId: listTaughtCourses
    description: >-
      List the courses the authenticated user teaches and take the first one as
      the authoring target.
    operationId: listCourses
    parameters:
    - name: enrollment_type
      in: query
      value: teacher
    - name: enrollment_state
      in: query
      value: active
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstCourseId: $response.body#/0/id
      firstCourseName: $response.body#/0/name
  - stepId: createAssignment
    description: >-
      Create the assignment in the teacher's first course.
    operationId: createAssignment
    parameters:
    - name: course_id
      in: path
      value: $steps.listTaughtCourses.outputs.firstCourseId
    requestBody:
      contentType: application/json
      payload:
        assignment:
          name: $inputs.name
          points_possible: $inputs.pointsPossible
          submission_types:
          - online_text_entry
          published: false
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      assignmentId: $response.body#/id
  outputs:
    courseId: $steps.listTaughtCourses.outputs.firstCourseId
    assignmentId: $steps.createAssignment.outputs.assignmentId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/canvas-lms-self-courses-and-create-assignment-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.