> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/technical-reference/core-concepts/runs-conversations-and-user-identity.md).

# Runs, Conversations, and User Identity

A run is one execution. A conversation groups related interactions. A user identity determines who is acting. Keeping these identifiers separate helps you retrieve the correct history and apply the correct permissions.

![Track execution separately from conversation](https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2Fp0CNVrrIgdpOqEOdAEzx%2Fruns-conversations-and-user-identity.png?alt=media)

Use the run ID returned by the API. Retain a conversation identifier separately if the chosen interface supplies one. The comment labels describe concepts, not extra request fields.

<details>

<summary>Copy the example</summary>

```http
# One execution has one run ID.
GET /v2/runs/{run_id}

# Keep these concepts separate in your application:
# run_id        -> this execution
# conversation  -> the related exchange
# user identity -> the authenticated caller

# A conversation identifier is not a credential.
```

</details>

## Before you begin

A project you can run and permission to inspect its run history.

## Runs and conversations

| Term          | Definition                                                                                                                                                    |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Run           | One execution of a project. Use its run ID to retrieve that execution’s state, input, output, and errors.                                                     |
| Conversation  | Related messages grouped into one interaction history. Several runs can belong to one conversation.                                                           |
| User identity | The authenticated person or application acting on a resource. It determines access; a display name or conversation ID does not authenticate a caller.         |
| Session       | A context maintained by an interface or browser for related activity. Its meaning depends on the feature; do not treat every session ID as a user credential. |
| Resource ID   | A stable identifier for a project, file, connection, or other resource. Use the required ID type; matching display names do not make IDs interchangeable.     |

## Identify a run and its conversation

1. Start the project through the intended interface or API.
2. Record the returned run ID. Retain the conversation identifier separately if the interface supplies one.
3. Open the run details to inspect that execution. Use the conversation view for the surrounding exchange.

You can locate the execution without treating its ID as a conversation or user ID.

## Behavior and limitations

One conversation can contain several runs. A conversation or memory identifier is not authentication. Do not use a shared identifier for unrelated users when their histories must remain separate. Child workflows can have their own run IDs.

## Related resources

[Organizations, Workspaces, Folders, and Projects](https://docs.stackai.com/technical-reference/core-concepts/organizations-workspaces-folders-and-projects.md)


---

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/technical-reference/core-concepts/runs-conversations-and-user-identity.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
