# Code Acceptance Logs

**Code Acceptance Logging** tracks all explicit acceptances of code recommendations by the use or code recommended by Tabnine. These logs can be leveraged for compliance needs.

{% hint style="info" %}
To activate this service and access all Acceptance Logs, please contact <support@tabnine.com>.
{% endhint %}

{% hint style="info" %}
This is only available for self-hosted instances.
{% endhint %}

Accepted code may come from any of these code generation sources:

1. [Code Completions](/main/getting-started/code-completion.md)
2. [Tabnine Chat](/main/getting-started/tabnine-chat.md) (via Apply, insert, copy, or manual highlight-and-copy \[copy-raw])
3. [Inline Actions](/main/getting-started/inline-actions.md)
4. [Test Agent](https://github.com/codota/docs/blob/main/main/getting-started/getting-the-most-from-tabnines-code-completion/broken-reference/README.md)

All logs will include standard information such as:

1. The full code snippet that was accepted
2. Timestamp
3. Session ID
4. Code generation source
5. Model name
6. User ID
7. Team ID


---

# 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://docs.tabnine.com/main/getting-started/code-completion/code-acceptance-logs.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.
