Canvas REST API
The Canvas REST API enables your organization to interact with Canvas programmatically. Use this API to register new accounts and build integration workflows between third-party applications.
This page documents the REST resources available in Canvas, including the HTTP response codes and example requests and responses:
- 1 IP restriction
- 2 Authentication
- 3 APIs for help
- 3.1 GetMetaData
- 3.2 Describe
- 4 APIs for organization administration
- 5 Application APIs
- 5.1 Applications
- 5.2 RegApplications
- 5.3 RegApplication
- 6 Workflow APIs
- 6.1 WorkflowTemplates
- 6.2 Workflows
- 6.3 Workflow (get)
- 6.4 Workflow (post)
- 6.5 DeleteWorkflow
- 6.6 RunWorkflow
- 6.7 WorkflowScheduler
Base URL for environments:
DEV - https://canvastest.connectmyapps.com/api
PRD - https://canvas.connectmyapps.com/api
IP restriction
You can send Canvas REST API requests from any server by default.
If you want to restict access by IP addresses, then please provide your IP addresses to ConnectMyApps support for adding them into white list.
Authentication
For enabling of access to your organization data by REST API you need to set <API access> flag ON and copy provided Secret and Consumer keys. These keys are for access to Canvas REST API and you will use them in request headers. Do not share provided keys with anybody and keep them in safe place because they are not saved in Canvas and you will not be able to get them anymore.
Use following authentication request for checking your access keys:
APIs for help
There are two APIs, which describes list of all provided APIs
GetMetaData
For getting of all provided APIs you need to send following request:
Describe
For getting of description about APIs parameters you can use following request:
APIs for organization administration
Accounts
Returns list of all active accounts in your organization
Account
Registers a new account and returns account Id. If account is created as inactive then an email to complete activation will be send by corresponded address.
Application APIs
Applications
Returns list of all third-part applications supported by CMA
RegApplications
Returns account registerred applications
RegApplication
Registers a new application and returns Id
Workflow APIs
WorkflowTemplates
Returns list of workflow templates provided by CMA and your organization
Workflows
Returns list of registered workflows
Workflow (get)
Returns registered workflow by id
Workflow (post)
Registers a new workflow based on template
DeleteWorkflow
Removes workflow by Id
RunWorkflow
Runs workflow or needed blocks
WorkflowScheduler
Sets ON/OFF a workflow scheduler. The scheduler frequency should be set in CRON format.