Skip to content
Dark mode

Submit a mission response

Submits a learner's text response to an email and task evaluation mission, so the mission's normal review flow can complete it.

Prerequisites

  1. Authentication and setup: A valid access token.
  2. Invite users to a module: The learner must be invited to the mission.
POST /api/training/v1/series/SERIES_ID/modules/ENTITY_ID/submissions

Replace SERIES_ID and ENTITY_ID with the values in the path parameters table.

Base URL: the API3 host for your region, not the standard API base URL. See Base URLs.

Headers: Authorization: Bearer ACCESS_TOKEN, Content-Type: application/json.

The submission goes through the same review flow as a response the learner submits on the learning site. The API does not mark the module complete and does not set a score.

Parameter Type Required Description
SERIES_ID string Required Mindtickle series ID.
ENTITY_ID string Required Mindtickle module ID of the email and task evaluation mission.
Parameter Type Required Description
learner object Required The learner to submit for. Send exactly one of learner.id or learner.email. A blank value counts as missing.
learner.id string Conditional Mindtickle user ID of the learner.
learner.email string Conditional Primary email address of the learner. The match is not case-sensitive.
submission object Required The learner’s response.
submission.format string Required Must be HTML.
submission.content string Required The response as HTML, up to 50,000 characters including HTML tags. See HTML in the response.
options object Optional Settings for the submission.
options.notifyReviewers boolean Optional Set to false to submit without sending the submission email to reviewers. Default: true. See Notes.
  • Tags that are kept: p, br, strong, b, em, i, u, ul, ol, li, and a.
  • Links: An a tag keeps only its href attribute, and only for http and https links.
  • Other tags: All other tags, such as images and videos, are removed. The text inside them is kept, except inside script and style tags, which is removed too.
  • Plain text: Content that contains no < character is treated as plain text and placed in a single p tag. To show line breaks, send the content as HTML with p or br tags.
  • Empty content: The content must still contain text after the other tags are removed.
{
"learner": {
"email": "dana@example.com"
},
"submission": {
"format": "HTML",
"content": "<p>Hi Quinn N.,</p><p>Thanks for your time today. Here is a summary of our <strong>next steps</strong>.</p>"
},
"options": {
"notifyReviewers": true
}
}

A successful request returns 202 Accepted.

Field Type Description
submission_id string ID of the submitted response. Each attempt gets a new ID.
learner_id string Mindtickle user ID of the learner.
session_no integer Attempt number of the submission.
status string Always SUBMITTED.
submitted_at integer Epoch timestamp, in milliseconds, of the API request.
{
"submission_id": "1234567890123456101",
"learner_id": "123456789abcd102",
"session_no": 1,
"status": "SUBMITTED",
"submitted_at": 1794859200000
}

Before it submits, the API checks the state of the learner’s current attempt.

Current attempt What the API does
Not started or in progress, or a reviewer asked the learner to redo the mission, or an admin reset the learner’s progress Submits the response for the current attempt.
Submitted and waiting for review, or review in progress Rejects the request with 409 Conflict and SUBMISSION_PENDING_REVIEW.
Completed (passed or failed), or the AI reviewer asked the learner to redo the mission Starts a new attempt and submits the response, if the mission settings allow another attempt. Otherwise, rejects the request with 409 Conflict and REATTEMPT_NOT_ALLOWED.

Due date: If the mission is set to freeze at the learner due date (the Mission freezes. Learner can’t progress any further. setting), the API can’t submit for the learner, or start a new attempt, after the due date. It returns 409 Conflict with DUE_DATE_PASSED. With any other due date setting, you can submit after the due date.

Error responses have this format. Errors from the API gateway, such as most 401, 403, and 429 errors, have only message and, for some errors, code.

{
"code": "ERROR_CODE",
"message": "ERROR_MESSAGE",
"request_id": "REQUEST_ID"
}
Status Error Reason
400 Bad Request INVALID_REQUEST The request is not valid. The message names the problem, for example a body that is not JSON, a missing learner or submission, both learner.id and learner.email, an invalid email address, a format other than HTML, content that is empty, longer than 50,000 characters, or has no text after the HTML is cleaned, or a notifyReviewers value that is not true, false, or null. Mindtickle can also reject the submission with this code, and the message says why.
401 Unauthorized Varies The access token is missing or not valid. The error code depends on where the token is rejected, and some responses have no code.
403 Forbidden Varies The API gateway rejected the access token, for example because the token is missing details the gateway needs.
404 Not Found LEARNER_NOT_FOUND No active user in your company has this user ID or primary email address, or more than one user has this email address. Deactivated users are not matched.
404 Not Found LEARNER_NOT_ENROLLED The learner is not invited to the module.
404 Not Found MODULE_NOT_FOUND The module was not found.
409 Conflict SUBMISSION_PENDING_REVIEW The learner already has a submission waiting for review.
409 Conflict REATTEMPT_NOT_ALLOWED The mission settings do not allow another attempt.
409 Conflict DUE_DATE_PASSED The due date has passed, and the mission freezes after the due date.
422 Unprocessable Entity UNSUPPORTED_MISSION_TYPE The module is not an email and task evaluation mission, or the mission does not accept a text response.
429 Too Many Requests None More than 50 requests in a minute.
500 Internal Server Error UNKNOWN_ERROR A general server-side failure occurred.
502 Bad Gateway UPSTREAM_ERROR A platform service did not respond as expected. The submission may still have gone through. If you send the request again and it did, you get 409 Conflict with SUBMISSION_PENDING_REVIEW. If you contact Mindtickle Support, include the request_id.

For SUBMISSION_PENDING_REVIEW, the response can also include the submission_id and session_no of the submission that is waiting for review.

Error example, submission waiting for review:

{
"code": "SUBMISSION_PENDING_REVIEW",
"message": "A submission for this learner is already awaiting review",
"request_id": "req_103",
"submission_id": "1234567890123456101",
"session_no": 1
}
  • Supported module types: The API supports only email and task evaluation missions that accept a text response. If the mission accepts both text and files, the API submits only the text.
  • Text only: You cannot attach files, images, or videos.
  • Submission time: The submission time is the time of the API request. You cannot set a different time.
  • Completion and scores: The API does not mark the module complete or set a score. The module is completed through the mission’s normal review flow. To mark a mission complete with a fixed score instead, use Complete a mission or AI Roleplay.
  • Notifications: Reviewers get an email about the submission. If no reviewer is assigned to the learner, the module’s admin gets the email instead. Set options.notifyReviewers to false to send no email.
  • Rate limit: 50 requests per minute.