API: Integrations endpoints¶
/integrations¶
GET /integrations¶
List owned and managed integrations.
[] Input:
- string search: optional search string to filter results
- integer limit: limit number of results
- default: 16
- integer page: page number
- default: 1
- not used in search mode!
[] Output:
- list integrations
- string integration: integration identification string
- string/null id: external unique integration identifier (if set for the integration)
- string title: title of the integration
/integration¶
GET /integration¶
Get/check integration.
[] Input:
- [!] string integration: integration identification string
[] Output:
- string integration: integration identification string
- string/null id: external unique integration identifier (if set for the integration)
- string title: title of the integration
- string type: type of the integration
- api: EduBase API
- moodle: Moodle LMS
- canvas: Canvas LMS
- d2l: D2L LMS
- schoology: Schoology LMS
- lms: other LMS
- boolean active: integration is active
- string lti: LTI version (only present if the integration is an LMS integration)
- integer/null secret_lifetime: effective lifetime of the secret in days, limited by the instance policy (only present if the integration has an expiring secret: API integrations and LMS integrations using LTI 1.0/1.1)
- null: the secret never expires
- boolean/null secret_expired: the secret has expired and the integration does not work until the secret is rotated (only present if secret_lifetime is not null)
- datetime/null secret_expires: expiry of the secret in UTC (only present if secret_lifetime is not null)
POST /integration¶
Create a new API or LMS integration.
[] Input:
- [!] string title: title of the integration
- string description: optional short description
- string type: type of the integration
- possible values: api / moodle / canvas / d2l / schoology / lms
- api: EduBase API integration
- moodle/canvas/d2l/schoology: selected LMS integration
- lms: other LMS integration
- default: api
- possible values: api / moodle / canvas / d2l / schoology / lms
- [!] string lti: LTI version
- only necessary if the integration is an LMS integration
- possible values: 1.0/1.1 / 1.3
- 1.0/1.1: LTI 1.0 or 1.1
- 1.3: LTI 1.3 (also known as LTI Advantage)
- [!] string platform: LMS platform URL (only necessary if the integration is an LMS integration)
- integer{0,9999} secret_lifetime: optional lifetime of the secret in days, counted from its last rotation
- 0 (or never): the secret never expires
- default: never expires
- not available for LMS integrations using LTI 1.3
- the instance policy can set a maximum lifetime: longer and never expiring lifetimes are then rejected, and existing integrations are limited to the maximum
- an expired secret stops the integration from working until it is rotated with POST /integration:keys
- string organization: organization identification string to assign the integration to
- only an organization of the API application owner can be used
- always the organization of the user for organizational members
[] Output:
- string integration: integration identification string
PATCH /integration¶
Update integration.
[] Input:
- [!] string integration: integration identification string
- boolean active: enable or disable integration
- string organization: organization identification string to move the integration to
- only an organization of the API application owner can be used
- only the owner of the integration (or an administrator) can change the organization
- send none (or an empty value) to remove the integration from its current organization
- always the organization of the user for organizational members
- integer{0,9999} secret_lifetime: lifetime of the secret in days, counted from its last rotation
- 0 (or never): the secret never expires
- same rules as for POST /integration
- only available for integrations with an expiring secret (API integrations and LMS integrations using LTI 1.0/1.1)
- only the managers of the integration can change it
DELETE /integration¶
Remove integration.
[] Input:
- [!] string integration: integration identification string
/integration:keys¶
GET /integration:keys¶
Get integration keys/secrets.
[] Input:
- [!] string integration: integration identification string
[] Output:
- string app: API application identification string (only present if the integration is an API integration)
- string consumer: consumer key (only present if the integration is an LMS integration using LTI 1.0/1.1)
- string secret: secret key (only present if the integration is an API integration or an LMS integration using LTI 1.0/1.1)
- datetime/null expires: expiry of the secret in UTC (only present if the integration is an API integration or an LMS integration using LTI 1.0/1.1, null if the secret never expires)
- string jwk: URL for the JWK (JSON Web Key) set (only present if the integration is an LMS integration using LTI 1.3)
- string pem: PEM formatted public key (only present if the integration is an LMS integration using LTI 1.3)
POST /integration:keys¶
Rotate integration keys/secrets. Rotating the secret restarts its lifetime (see the secret_lifetime setting of POST /integration).
[] Input:
- [!] string integration: integration identification string
[] Output:
The new keys and secrets of the integration are returned, the same way as with GET /integration:keys.