> 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/canvas/external-tools/plagiarism-detection-platform/plagiarism_detection_platform_assignments.md).

# Plagiarism Detection Platform Assignments

**Plagiarism Detection Platform API for Assignments (Must use** [**JWT access tokens**](/services/canvas/external-tools/plagiarism-detection-platform/file.jwt_access_tokens.md) **with this API).**

#### A LtiAssignment object looks like: <a href="#ltiassignment" id="ltiassignment"></a>

```js
// A Canvas assignment
{
  "id": 4,
  "name": "Midterm Review",
  "description": "<p>Do the following:</p>...",
  "points_possible": 10,
  // The due date for the assignment. If a user id is supplied and an assignment
  // override is in place this field will reflect the due date as it applies to
  // the user.
  "due_at": "2012-07-01T23:59:00-06:00",
  "lti_id": "86157096483e6b3a50bfedc6bac902c0b20a824f",
  "course_id": 10000000000060,
  "lti_course_id": "66157096483e6b3a50bfedc6bac902c0b20a8241"
}
```

## [Get a single assignment (lti)](#method.lti/plagiarism_assignments_api.show) <a href="#method.lti-plagiarism_assignments_api.show" id="method.lti-plagiarism_assignments_api.show"></a>

[Lti::PlagiarismAssignmentsApiController#show](https://github.com/instructure/canvas-lms/blob/master/app/controllers/lti/plagiarism_assignments_api_controller.rb)

#### `GET /api/lti/assignments/:assignment_id`

**Scope:** `url:GET|/api/lti/assignments/:assignment_id`

Get a single Canvas assignment by Canvas id or LTI id. Tool providers may only access assignments that are associated with their tool.

#### Request Parameters:

| Parameter | Type     | Description                                                 |
| --------- | -------- | ----------------------------------------------------------- |
| `user_id` | `string` | The id of the user. Can be a Canvas or LTI id for the user. |

Returns a [LtiAssignment](#ltiassignment) object.

***

This documentation is generated directly from the Canvas LMS source code, available [on Github](https://github.com/instructure/canvas-lms).


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developerdocs.instructure.com/services/canvas/external-tools/plagiarism-detection-platform/plagiarism_detection_platform_assignments.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
