> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.athenaintel.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.athenaintel.com/_mcp/server.

# Resolve Presence

POST https://api.athenaintel.com/api/v0/workspaces/{workspace_id}/presence/resolve
Content-Type: application/json

Admin only. Resolve the guids a presence feed carries into display titles, asset kinds, and project membership, and optionally list the projects and members of the workspace. Every id is checked against the calling user's own read permission as an ordinary member; anything the caller could not open is omitted rather than reported. Same gates as the presence-token mint.

Reference: https://docs.athenaintel.com/api-reference/workspaces/resolve-presence

## Authentication

- `X-API-KEY` header (required) — API Key authentication via header

## Request

### Path parameters

- `workspace_id` (string, required) — The workspace whose presence feed to read.

### Body (application/json)

This endpoint expects a PresenceResolveRequestIn.

- `asset_ids` (list of string, optional) — Asset guids from presence contexts of type asset.
- `include_members` (boolean, optional, default: false) — Also list the workspace's members (name, email, avatar) so the app can name people by their attested user id rather than the self-reported slot.
- `include_projects` (boolean, optional, default: false) — Also list every project the caller may open in this workspace, each with the linked documents the caller may open.
- `project_ids` (list of string, optional) — Project guids from coarse presence contexts or from a visible context's projects annotation.
- `session_ids` (list of string, optional) — Thread ids from presence contexts of type session (what an open chat publishes). Each resolves to the workspace's session asset.

## Response

### 200

Successful Response

- `assets` (list of PresenceAssetOut, optional)
- `members` (list of PresenceMemberOut, optional)
- `projects` (list of PresenceProjectOut, optional)
- `sessions` (list of PresenceSessionOut, optional)

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### PresenceAssetOut

- `id` (string, required) — Asset guid.
- `asset_type` (string, optional, nullable) — Athena asset type, e.g. document, spreadsheet, project.
- `title` (string, optional, nullable) — Display title.

### PresenceMemberOut

- `email` (string, required) — Email.
- `id` (string, required) — User id (matches a slot's attested authUserId).
- `name` (string, required) — Display name.
- `avatar_url` (string, optional, nullable) — Avatar URL.

### PresenceProjectOut

- `id` (string, required) — Project guid.
- `assets` (list of PresenceAssetOut, optional) — Documents linked into the project that the caller may open.
- `title` (string, optional, nullable) — Display title.

### PresenceSessionOut

- `asset_id` (string, required) — The session asset carrying that thread.
- `thread_id` (string, required) — The thread id the feed published.
- `title` (string, optional, nullable) — Display title.

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `ctx` (ValidationErrorCtx, optional)
- `input` (any, optional)

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

## Examples

**Request**

```json
{
  "asset_ids": [
    "asset_1f9b6b2e-4c1d-4a0a-9c1e-2b7d1a0f3c44"
  ],
  "include_members": true,
  "include_projects": true,
  "project_ids": [
    "asset_7c2d1e0f-3a4b-4c5d-8e6f-1a2b3c4d5e6f"
  ],
  "session_ids": [
    "thread_3f0a9c2e-6b1d-4d8e-8a2f-5c7e9b1d2a30"
  ]
}
```

**Response**

```json
{
  "assets": [
    {
      "id": "asset_1f9b6b2e-4c1d-4a0a-9c1e-2b7d1a0f3c44",
      "asset_type": "document",
      "title": "Q3 close runbook"
    }
  ],
  "members": [
    {
      "email": "ada@example.com",
      "id": "user_5b8e2c1a-9d4f-4e3b-8c7a-6f1e2d3c4b5a",
      "name": "Ada Example"
    }
  ],
  "projects": [
    {
      "id": "asset_7c2d1e0f-3a4b-4c5d-8e6f-1a2b3c4d5e6f",
      "assets": [
        {
          "id": "asset_1f9b6b2e-4c1d-4a0a-9c1e-2b7d1a0f3c44",
          "asset_type": "document",
          "title": "Q3 close runbook"
        }
      ],
      "title": "Q3 close"
    }
  ],
  "sessions": [
    {
      "asset_id": "asset_0d4e8a7b-2c3f-4b1a-9e5d-6f7a8b9c0d1e",
      "thread_id": "thread_3f0a9c2e-6b1d-4d8e-8a2f-5c7e9b1d2a30",
      "title": "Reconcile the September ledger"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.athenaintel.com/api/v0/workspaces/workspace_id/presence/resolve"

payload = {
    "asset_ids": ["asset_1f9b6b2e-4c1d-4a0a-9c1e-2b7d1a0f3c44"],
    "include_members": True,
    "include_projects": True,
    "project_ids": ["asset_7c2d1e0f-3a4b-4c5d-8e6f-1a2b3c4d5e6f"],
    "session_ids": ["thread_3f0a9c2e-6b1d-4d8e-8a2f-5c7e9b1d2a30"]
}
headers = {
    "X-API-KEY": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.athenaintel.com/api/v0/workspaces/workspace_id/presence/resolve';
const options = {
  method: 'POST',
  headers: {'X-API-KEY': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"asset_ids":["asset_1f9b6b2e-4c1d-4a0a-9c1e-2b7d1a0f3c44"],"include_members":true,"include_projects":true,"project_ids":["asset_7c2d1e0f-3a4b-4c5d-8e6f-1a2b3c4d5e6f"],"session_ids":["thread_3f0a9c2e-6b1d-4d8e-8a2f-5c7e9b1d2a30"]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.athenaintel.com/api/v0/workspaces/workspace_id/presence/resolve"

	payload := strings.NewReader("{\n  \"asset_ids\": [\n    \"asset_1f9b6b2e-4c1d-4a0a-9c1e-2b7d1a0f3c44\"\n  ],\n  \"include_members\": true,\n  \"include_projects\": true,\n  \"project_ids\": [\n    \"asset_7c2d1e0f-3a4b-4c5d-8e6f-1a2b3c4d5e6f\"\n  ],\n  \"session_ids\": [\n    \"thread_3f0a9c2e-6b1d-4d8e-8a2f-5c7e9b1d2a30\"\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-API-KEY", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.athenaintel.com/api/v0/workspaces/workspace_id/presence/resolve")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"asset_ids\": [\n    \"asset_1f9b6b2e-4c1d-4a0a-9c1e-2b7d1a0f3c44\"\n  ],\n  \"include_members\": true,\n  \"include_projects\": true,\n  \"project_ids\": [\n    \"asset_7c2d1e0f-3a4b-4c5d-8e6f-1a2b3c4d5e6f\"\n  ],\n  \"session_ids\": [\n    \"thread_3f0a9c2e-6b1d-4d8e-8a2f-5c7e9b1d2a30\"\n  ]\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.athenaintel.com/api/v0/workspaces/workspace_id/presence/resolve")
  .header("X-API-KEY", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"asset_ids\": [\n    \"asset_1f9b6b2e-4c1d-4a0a-9c1e-2b7d1a0f3c44\"\n  ],\n  \"include_members\": true,\n  \"include_projects\": true,\n  \"project_ids\": [\n    \"asset_7c2d1e0f-3a4b-4c5d-8e6f-1a2b3c4d5e6f\"\n  ],\n  \"session_ids\": [\n    \"thread_3f0a9c2e-6b1d-4d8e-8a2f-5c7e9b1d2a30\"\n  ]\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.athenaintel.com/api/v0/workspaces/workspace_id/presence/resolve', [
  'body' => '{
  "asset_ids": [
    "asset_1f9b6b2e-4c1d-4a0a-9c1e-2b7d1a0f3c44"
  ],
  "include_members": true,
  "include_projects": true,
  "project_ids": [
    "asset_7c2d1e0f-3a4b-4c5d-8e6f-1a2b3c4d5e6f"
  ],
  "session_ids": [
    "thread_3f0a9c2e-6b1d-4d8e-8a2f-5c7e9b1d2a30"
  ]
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-API-KEY' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.athenaintel.com/api/v0/workspaces/workspace_id/presence/resolve");
var request = new RestRequest(Method.POST);
request.AddHeader("X-API-KEY", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"asset_ids\": [\n    \"asset_1f9b6b2e-4c1d-4a0a-9c1e-2b7d1a0f3c44\"\n  ],\n  \"include_members\": true,\n  \"include_projects\": true,\n  \"project_ids\": [\n    \"asset_7c2d1e0f-3a4b-4c5d-8e6f-1a2b3c4d5e6f\"\n  ],\n  \"session_ids\": [\n    \"thread_3f0a9c2e-6b1d-4d8e-8a2f-5c7e9b1d2a30\"\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-API-KEY": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "asset_ids": ["asset_1f9b6b2e-4c1d-4a0a-9c1e-2b7d1a0f3c44"],
  "include_members": true,
  "include_projects": true,
  "project_ids": ["asset_7c2d1e0f-3a4b-4c5d-8e6f-1a2b3c4d5e6f"],
  "session_ids": ["thread_3f0a9c2e-6b1d-4d8e-8a2f-5c7e9b1d2a30"]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.athenaintel.com/api/v0/workspaces/workspace_id/presence/resolve")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```