# Statements

## Insert Statement

<mark style="color:orange;">`PUT`</mark> `https://{organisation}.clearlrs.com/xapi/statements`

Inserts a single **Statement** into the LRS. The **Statement** will be processed and expose the meaning of its data to reporting interfaces.

#### Query Parameters

| Name        | Type   | Description                                                                                                   |
| ----------- | ------ | ------------------------------------------------------------------------------------------------------------- |
| statementId | string | Store the statement under this **id** for later retrieval. If omitted, an id will be generated automatically. |

#### Headers

| Name           | Type   | Description          |
| -------------- | ------ | -------------------- |
| Authentication | string | Authentication token |

#### Request Body

| Name      | Type   | Description      |
| --------- | ------ | ---------------- |
| timestamp | string |                  |
| result    | object |                  |
| context   | object |                  |
| object    | object |                  |
| verb      | object | The verb object  |
| actor     | object | The actor object |

{% tabs %}
{% tab title="204 Statement successfully inserted." %}

```
```

{% endtab %}

{% tab title="400 The Statement content is invalid." %}

```
```

{% endtab %}

{% tab title="409 The statementId specified already exists in the LRS." %}

```
```

{% endtab %}
{% endtabs %}

## Bulk Insert Statements

<mark style="color:green;">`POST`</mark> `https://{organisation}.clearlrs.com/xapi/statements`

#### Path Parameters

| Name           | Type   | Description          |
| -------------- | ------ | -------------------- |
| Authentication | string | Authentication token |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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:

```
GET https://dev.clearxp.com/xapi-reference/statements.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
