> For the complete documentation index, see [llms.txt](https://docs.concurrence.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.concurrence.com/api-reference/readme/platform/insights.md).

# Insights

## Execute Sql

> Execute a read-only SQL query against Databricks.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Insights"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"SqlQueryRequest":{"properties":{"sql":{"type":"string","maxLength":50000,"minLength":1,"title":"Sql","description":"Read-only SQL query against Databricks."}},"type":"object","required":["sql"],"title":"SqlQueryRequest"},"SqlQueryResponse":{"properties":{"results":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Results"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","title":"SqlQueryResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/insights/sql":{"post":{"tags":["Insights"],"summary":"Execute Sql","description":"Execute a read-only SQL query against Databricks.","operationId":"execute_sql_v1__workspace_id__insights_sql_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SqlQueryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SqlQueryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}]}}}}
```

## Describe Schema

> List available tables, columns, and functions.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Insights"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"SchemaResponse":{"properties":{"lakebase_tables":{"additionalProperties":{"additionalProperties":{"type":"string"},"type":"object"},"type":"object","title":"Lakebase Tables"},"databricks_catalogs":{"items":{"type":"string"},"type":"array","title":"Databricks Catalogs"},"customer_data_tables":{"additionalProperties":{"additionalProperties":{"type":"string"},"type":"object"},"type":"object","title":"Customer Data Tables","description":"This workspace's customer-data tables and views, by the name to query them by, each mapped to its column types."},"uc_functions":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Uc Functions"},"ai_functions":{"items":{"type":"string"},"type":"array","title":"Ai Functions"}},"type":"object","required":["lakebase_tables","databricks_catalogs","customer_data_tables","uc_functions","ai_functions"],"title":"SchemaResponse"}}},"paths":{"/v1/{workspace_id}/insights/schema":{"get":{"tags":["Insights"],"summary":"Describe Schema","description":"List available tables, columns, and functions.","operationId":"describe_schema_v1__workspace_id__insights_schema_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchemaResponse"}}}}},"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}]}}}}
```

## Get Suggestions

> Get contextual starter questions for the insights agent.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Insights"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"SuggestionsResponse":{"properties":{"suggestions":{"items":{"type":"string"},"type":"array","title":"Suggestions"}},"type":"object","required":["suggestions"],"title":"SuggestionsResponse"}}},"paths":{"/v1/{workspace_id}/insights/suggestions":{"get":{"tags":["Insights"],"summary":"Get Suggestions","description":"Get contextual starter questions for the insights agent.","operationId":"get_suggestions_v1__workspace_id__insights_suggestions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestionsResponse"}}}}},"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}]}}}}
```

## Get Digest

> Proactive workspace health digest. Cached 5 minutes.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Insights"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}}},"paths":{"/v1/{workspace_id}/insights/digest":{"get":{"tags":["Insights"],"summary":"Get Digest","description":"Proactive workspace health digest. Cached 5 minutes.","operationId":"get_digest_v1__workspace_id__insights_digest_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Digest V1  Workspace Id  Insights Digest Get"}}}}},"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}]}}}}
```

## Get Demo Home Facts

> Complete fixed Home facts from one approved r2 synthetic publication. IDs are synthetic.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Insights"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"DemoHomeResponse":{"properties":{"source":{"$ref":"#/components/schemas/DemoSource"},"agents":{"items":{"$ref":"#/components/schemas/DemoHomeAgent"},"type":"array","maxItems":5000,"title":"Agents"},"conversations":{"items":{"$ref":"#/components/schemas/DemoHomeConversation"},"type":"array","maxItems":5000,"title":"Conversations"},"checks":{"items":{"$ref":"#/components/schemas/DemoHomeCheck"},"type":"array","maxItems":5000,"title":"Checks"}},"additionalProperties":false,"type":"object","required":["source","agents","conversations","checks"],"title":"DemoHomeResponse"},"DemoSource":{"properties":{"kind":{"type":"string","const":"published_demo","title":"Kind","default":"published_demo"},"synthetic":{"type":"boolean","const":true,"title":"Synthetic","default":true},"dataset_version":{"type":"string","pattern":"^r[12]_[0-9]{8}_[a-f0-9]{64}$","title":"Dataset Version"},"as_of_date":{"type":"string","format":"date","title":"As Of Date"},"data_through":{"type":"string","format":"date","title":"Data Through"},"event_window_start":{"type":"string","format":"date-time","title":"Event Window Start"},"event_window_end":{"type":"string","format":"date-time","title":"Event Window End"},"observed_before":{"type":"string","format":"date-time","title":"Observed Before"},"recipe_version":{"type":"string","maxLength":100,"minLength":1,"title":"Recipe Version"},"content_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Content Sha256"},"logical_table":{"type":"string","title":"Logical Table"},"snapshot_table":{"type":"string","title":"Snapshot Table"},"definitions":{"additionalProperties":{"type":"string"},"type":"object","title":"Definitions"},"table_map":{"additionalProperties":{"$ref":"#/components/schemas/DemoTable"},"type":"object","title":"Table Map"},"definition_records":{"items":{"$ref":"#/components/schemas/DemoDefinition"},"type":"array","title":"Definition Records","default":[]},"event_window_scope":{"anyOf":[{"type":"string","const":"conversations"},{"type":"null"}],"title":"Event Window Scope"}},"additionalProperties":false,"type":"object","required":["dataset_version","as_of_date","data_through","event_window_start","event_window_end","observed_before","recipe_version","content_sha256","logical_table","snapshot_table","definitions"],"title":"DemoSource","description":"Captured provenance, safe to expose with authorized selected evidence."},"DemoTable":{"properties":{"physical_table":{"type":"string","title":"Physical Table"},"columns":{"items":{"$ref":"#/components/schemas/SqlColumn"},"type":"array","title":"Columns"},"row_count":{"type":"integer","maximum":5000,"minimum":0,"title":"Row Count"},"description":{"type":"string","maxLength":2048,"title":"Description"}},"additionalProperties":false,"type":"object","required":["physical_table","columns","row_count","description"],"title":"DemoTable"},"SqlColumn":{"properties":{"name":{"type":"string","title":"Name"},"type_name":{"type":"string","title":"Type Name"},"type_text":{"type":"string","title":"Type Text"}},"type":"object","required":["name","type_name","type_text"],"title":"SqlColumn"},"DemoDefinition":{"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"title":"Id"},"description":{"type":"string","maxLength":1024,"minLength":1,"title":"Description"},"population":{"type":"string","maxLength":512,"minLength":1,"title":"Population"},"time_basis":{"type":"string","maxLength":512,"minLength":1,"title":"Time Basis"},"units":{"type":"string","maxLength":128,"minLength":1,"title":"Units"}},"additionalProperties":false,"type":"object","required":["id","description","population","time_basis","units"],"title":"DemoDefinition"},"DemoHomeAgent":{"properties":{"id":{"$ref":"#/components/schemas/FactId"},"name":{"$ref":"#/components/schemas/FactLabel"}},"additionalProperties":false,"type":"object","required":["id","name"],"title":"DemoHomeAgent"},"FactId":{"type":"string","maxLength":200,"minLength":1},"FactLabel":{"type":"string","maxLength":256,"minLength":1},"DemoHomeConversation":{"properties":{"id":{"$ref":"#/components/schemas/FactId"},"agent_id":{"anyOf":[{"$ref":"#/components/schemas/FactId"},{"type":"null"}]},"started_at":{"type":"string","format":"date-time","title":"Started At"},"channel_kind":{"anyOf":[{"$ref":"#/components/schemas/FactLabel"},{"type":"null"}]},"is_production":{"type":"boolean","title":"Is Production"},"safety_status":{"anyOf":[{"$ref":"#/components/schemas/FactLabel"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","agent_id","started_at","channel_kind","is_production","safety_status"],"title":"DemoHomeConversation"},"DemoHomeCheck":{"properties":{"id":{"$ref":"#/components/schemas/FactId"},"conversation_id":{"$ref":"#/components/schemas/FactId"},"check_key":{"$ref":"#/components/schemas/FactLabel"},"passed":{"type":"boolean","title":"Passed"},"definition_id":{"$ref":"#/components/schemas/FactId"}},"additionalProperties":false,"type":"object","required":["id","conversation_id","check_key","passed","definition_id"],"title":"DemoHomeCheck"}}},"paths":{"/v1/{workspace_id}/insights/demo-home":{"get":{"tags":["Insights"],"summary":"Get Demo Home Facts","description":"Complete fixed Home facts from one approved r2 synthetic publication. IDs are synthetic.","operationId":"get_demo_home_facts_v1__workspace_id__insights_demo_home_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoHomeResponse"}}}}},"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}]}}}}
```

## Create Session

> Create a new insights chat session.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Insights"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"SessionResponse":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"source":{"anyOf":[{"$ref":"#/components/schemas/DemoSource"},{"type":"null"}]}},"type":"object","required":["id"],"title":"SessionResponse"},"DemoSource":{"properties":{"kind":{"type":"string","const":"published_demo","title":"Kind","default":"published_demo"},"synthetic":{"type":"boolean","const":true,"title":"Synthetic","default":true},"dataset_version":{"type":"string","pattern":"^r[12]_[0-9]{8}_[a-f0-9]{64}$","title":"Dataset Version"},"as_of_date":{"type":"string","format":"date","title":"As Of Date"},"data_through":{"type":"string","format":"date","title":"Data Through"},"event_window_start":{"type":"string","format":"date-time","title":"Event Window Start"},"event_window_end":{"type":"string","format":"date-time","title":"Event Window End"},"observed_before":{"type":"string","format":"date-time","title":"Observed Before"},"recipe_version":{"type":"string","maxLength":100,"minLength":1,"title":"Recipe Version"},"content_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Content Sha256"},"logical_table":{"type":"string","title":"Logical Table"},"snapshot_table":{"type":"string","title":"Snapshot Table"},"definitions":{"additionalProperties":{"type":"string"},"type":"object","title":"Definitions"},"table_map":{"additionalProperties":{"$ref":"#/components/schemas/DemoTable"},"type":"object","title":"Table Map"},"definition_records":{"items":{"$ref":"#/components/schemas/DemoDefinition"},"type":"array","title":"Definition Records","default":[]},"event_window_scope":{"anyOf":[{"type":"string","const":"conversations"},{"type":"null"}],"title":"Event Window Scope"}},"additionalProperties":false,"type":"object","required":["dataset_version","as_of_date","data_through","event_window_start","event_window_end","observed_before","recipe_version","content_sha256","logical_table","snapshot_table","definitions"],"title":"DemoSource","description":"Captured provenance, safe to expose with authorized selected evidence."},"DemoTable":{"properties":{"physical_table":{"type":"string","title":"Physical Table"},"columns":{"items":{"$ref":"#/components/schemas/SqlColumn"},"type":"array","title":"Columns"},"row_count":{"type":"integer","maximum":5000,"minimum":0,"title":"Row Count"},"description":{"type":"string","maxLength":2048,"title":"Description"}},"additionalProperties":false,"type":"object","required":["physical_table","columns","row_count","description"],"title":"DemoTable"},"SqlColumn":{"properties":{"name":{"type":"string","title":"Name"},"type_name":{"type":"string","title":"Type Name"},"type_text":{"type":"string","title":"Type Text"}},"type":"object","required":["name","type_name","type_text"],"title":"SqlColumn"},"DemoDefinition":{"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"title":"Id"},"description":{"type":"string","maxLength":1024,"minLength":1,"title":"Description"},"population":{"type":"string","maxLength":512,"minLength":1,"title":"Population"},"time_basis":{"type":"string","maxLength":512,"minLength":1,"title":"Time Basis"},"units":{"type":"string","maxLength":128,"minLength":1,"title":"Units"}},"additionalProperties":false,"type":"object","required":["id","description","population","time_basis","units"],"title":"DemoDefinition"}}},"paths":{"/v1/{workspace_id}/insights/sessions":{"post":{"tags":["Insights"],"summary":"Create Session","description":"Create a new insights chat session.","operationId":"create_session_v1__workspace_id__insights_sessions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionResponse"}}}}},"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}]}}}}
```

## Chat

> Chat with the insights agent. Returns SSE stream of visual blocks.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Insights"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"ChatRequest":{"properties":{"message":{"type":"string","maxLength":16000,"minLength":1,"title":"Message","description":"Insights chat user message."},"selection":{"anyOf":[{"$ref":"#/components/schemas/InsightSelection"},{"type":"null"}]}},"type":"object","required":["message"],"title":"ChatRequest"},"InsightSelection":{"properties":{"source_session_id":{"type":"string","format":"uuid","title":"Source Session Id"},"presentation_id":{"type":"string","format":"uuid","title":"Presentation Id"},"row_index":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"title":"Row Index"},"series_index":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"title":"Series Index"}},"additionalProperties":false,"type":"object","required":["source_session_id","presentation_id"],"title":"InsightSelection"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/insights/sessions/{session_id}/chat":{"post":{"tags":["Insights"],"summary":"Chat","description":"Chat with the insights agent. Returns SSE stream of visual blocks.","operationId":"chat_v1__workspace_id__insights_sessions__session_id__chat_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"description":"Session ID","title":"Session Id"},"description":"Session ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Get Session

> Get insights session history.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Insights"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/insights/sessions/{session_id}":{"get":{"tags":["Insights"],"summary":"Get Session","description":"Get insights session history.","operationId":"get_session_v1__workspace_id__insights_sessions__session_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"description":"Session ID","title":"Session Id"},"description":"Session ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Session V1  Workspace Id  Insights Sessions  Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## Get Result

> Read retained query evidence owned by the current conversation caller.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Insights"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"InsightResultResponse":{"properties":{"result_id":{"type":"string","format":"uuid","title":"Result Id"},"queried_at":{"type":"string","format":"date-time","title":"Queried At"},"truncated":{"type":"boolean","title":"Truncated"},"sql":{"type":"string","title":"Sql"},"logical_sql":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logical Sql"},"source":{"anyOf":[{"$ref":"#/components/schemas/DemoSource"},{"type":"null"}]},"columns":{"items":{"$ref":"#/components/schemas/EvidenceColumn"},"type":"array","title":"Columns"},"rows":{"items":{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array"},"type":"array","title":"Rows"}},"type":"object","required":["result_id","queried_at","truncated","sql","columns","rows"],"title":"InsightResultResponse"},"DemoSource":{"properties":{"kind":{"type":"string","const":"published_demo","title":"Kind","default":"published_demo"},"synthetic":{"type":"boolean","const":true,"title":"Synthetic","default":true},"dataset_version":{"type":"string","pattern":"^r[12]_[0-9]{8}_[a-f0-9]{64}$","title":"Dataset Version"},"as_of_date":{"type":"string","format":"date","title":"As Of Date"},"data_through":{"type":"string","format":"date","title":"Data Through"},"event_window_start":{"type":"string","format":"date-time","title":"Event Window Start"},"event_window_end":{"type":"string","format":"date-time","title":"Event Window End"},"observed_before":{"type":"string","format":"date-time","title":"Observed Before"},"recipe_version":{"type":"string","maxLength":100,"minLength":1,"title":"Recipe Version"},"content_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Content Sha256"},"logical_table":{"type":"string","title":"Logical Table"},"snapshot_table":{"type":"string","title":"Snapshot Table"},"definitions":{"additionalProperties":{"type":"string"},"type":"object","title":"Definitions"},"table_map":{"additionalProperties":{"$ref":"#/components/schemas/DemoTable"},"type":"object","title":"Table Map"},"definition_records":{"items":{"$ref":"#/components/schemas/DemoDefinition"},"type":"array","title":"Definition Records","default":[]},"event_window_scope":{"anyOf":[{"type":"string","const":"conversations"},{"type":"null"}],"title":"Event Window Scope"}},"additionalProperties":false,"type":"object","required":["dataset_version","as_of_date","data_through","event_window_start","event_window_end","observed_before","recipe_version","content_sha256","logical_table","snapshot_table","definitions"],"title":"DemoSource","description":"Captured provenance, safe to expose with authorized selected evidence."},"DemoTable":{"properties":{"physical_table":{"type":"string","title":"Physical Table"},"columns":{"items":{"$ref":"#/components/schemas/SqlColumn"},"type":"array","title":"Columns"},"row_count":{"type":"integer","maximum":5000,"minimum":0,"title":"Row Count"},"description":{"type":"string","maxLength":2048,"title":"Description"}},"additionalProperties":false,"type":"object","required":["physical_table","columns","row_count","description"],"title":"DemoTable"},"SqlColumn":{"properties":{"name":{"type":"string","title":"Name"},"type_name":{"type":"string","title":"Type Name"},"type_text":{"type":"string","title":"Type Text"}},"type":"object","required":["name","type_name","type_text"],"title":"SqlColumn"},"DemoDefinition":{"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"title":"Id"},"description":{"type":"string","maxLength":1024,"minLength":1,"title":"Description"},"population":{"type":"string","maxLength":512,"minLength":1,"title":"Population"},"time_basis":{"type":"string","maxLength":512,"minLength":1,"title":"Time Basis"},"units":{"type":"string","maxLength":128,"minLength":1,"title":"Units"}},"additionalProperties":false,"type":"object","required":["id","description","population","time_basis","units"],"title":"DemoDefinition"},"EvidenceColumn":{"properties":{"index":{"type":"integer","title":"Index"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"}},"type":"object","required":["index","name","type"],"title":"EvidenceColumn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/insights/sessions/{session_id}/results/{result_id}":{"get":{"tags":["Insights"],"summary":"Get Result","description":"Read retained query evidence owned by the current conversation caller.","operationId":"get_result_v1__workspace_id__insights_sessions__session_id__results__result_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"result_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Result Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsightResultResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## GET /v1/{workspace\_id}/insights/pins

> List Pins

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Insights"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"PinListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SharedPin"},"type":"array","title":"Items"},"has_more":{"type":"boolean","title":"Has More"},"continuation_token":{"title":"Continuation Token"}},"type":"object","required":["items","has_more","continuation_token"],"title":"PinListResponse"},"SharedPin":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"revision":{"type":"integer","title":"Revision"},"question":{"type":"string","title":"Question"},"block":{"additionalProperties":true,"type":"object","title":"Block"},"source":{"$ref":"#/components/schemas/PinEvidence"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"refreshed_at":{"type":"string","format":"date-time","title":"Refreshed At"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"updated_by":{"type":"string","format":"uuid","title":"Updated By"},"refresh_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Error"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"undo_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Undo Until"}},"additionalProperties":false,"type":"object","required":["id","revision","question","block","source","created_at","updated_at","refreshed_at","created_by","updated_by","refresh_error","deleted_at","undo_until"],"title":"SharedPin"},"PinEvidence":{"properties":{"result_id":{"type":"string","format":"uuid","title":"Result Id"},"queried_at":{"type":"string","format":"date-time","title":"Queried At"},"dataset_source":{"anyOf":[{"$ref":"#/components/schemas/DemoSource"},{"type":"null"}]},"columns":{"items":{"$ref":"#/components/schemas/SqlColumn"},"type":"array","title":"Columns"},"rows":{"items":{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array"},"type":"array","title":"Rows"}},"additionalProperties":false,"type":"object","required":["result_id","queried_at","columns","rows"],"title":"PinEvidence"},"DemoSource":{"properties":{"kind":{"type":"string","const":"published_demo","title":"Kind","default":"published_demo"},"synthetic":{"type":"boolean","const":true,"title":"Synthetic","default":true},"dataset_version":{"type":"string","pattern":"^r[12]_[0-9]{8}_[a-f0-9]{64}$","title":"Dataset Version"},"as_of_date":{"type":"string","format":"date","title":"As Of Date"},"data_through":{"type":"string","format":"date","title":"Data Through"},"event_window_start":{"type":"string","format":"date-time","title":"Event Window Start"},"event_window_end":{"type":"string","format":"date-time","title":"Event Window End"},"observed_before":{"type":"string","format":"date-time","title":"Observed Before"},"recipe_version":{"type":"string","maxLength":100,"minLength":1,"title":"Recipe Version"},"content_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Content Sha256"},"logical_table":{"type":"string","title":"Logical Table"},"snapshot_table":{"type":"string","title":"Snapshot Table"},"definitions":{"additionalProperties":{"type":"string"},"type":"object","title":"Definitions"},"table_map":{"additionalProperties":{"$ref":"#/components/schemas/DemoTable"},"type":"object","title":"Table Map"},"definition_records":{"items":{"$ref":"#/components/schemas/DemoDefinition"},"type":"array","title":"Definition Records","default":[]},"event_window_scope":{"anyOf":[{"type":"string","const":"conversations"},{"type":"null"}],"title":"Event Window Scope"}},"additionalProperties":false,"type":"object","required":["dataset_version","as_of_date","data_through","event_window_start","event_window_end","observed_before","recipe_version","content_sha256","logical_table","snapshot_table","definitions"],"title":"DemoSource","description":"Captured provenance, safe to expose with authorized selected evidence."},"DemoTable":{"properties":{"physical_table":{"type":"string","title":"Physical Table"},"columns":{"items":{"$ref":"#/components/schemas/SqlColumn"},"type":"array","title":"Columns"},"row_count":{"type":"integer","maximum":5000,"minimum":0,"title":"Row Count"},"description":{"type":"string","maxLength":2048,"title":"Description"}},"additionalProperties":false,"type":"object","required":["physical_table","columns","row_count","description"],"title":"DemoTable"},"SqlColumn":{"properties":{"name":{"type":"string","title":"Name"},"type_name":{"type":"string","title":"Type Name"},"type_text":{"type":"string","title":"Type Text"}},"type":"object","required":["name","type_name","type_text"],"title":"SqlColumn"},"DemoDefinition":{"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"title":"Id"},"description":{"type":"string","maxLength":1024,"minLength":1,"title":"Description"},"population":{"type":"string","maxLength":512,"minLength":1,"title":"Population"},"time_basis":{"type":"string","maxLength":512,"minLength":1,"title":"Time Basis"},"units":{"type":"string","maxLength":128,"minLength":1,"title":"Units"}},"additionalProperties":false,"type":"object","required":["id","description","population","time_basis","units"],"title":"DemoDefinition"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/insights/pins":{"get":{"tags":["Insights"],"summary":"List Pins","operationId":"list_pins_v1__workspace_id__insights_pins_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}},{"name":"continuation_token","in":"query","required":false,"schema":{"title":"Continuation Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## POST /v1/{workspace\_id}/insights/pins

> Create Pin

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Insights"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"CreatePinRequest":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"presentation_id":{"type":"string","format":"uuid","title":"Presentation Id"},"question":{"type":"string","maxLength":16000,"minLength":1,"title":"Question"}},"additionalProperties":false,"type":"object","required":["session_id","presentation_id","question"],"title":"CreatePinRequest"},"SharedPin":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"revision":{"type":"integer","title":"Revision"},"question":{"type":"string","title":"Question"},"block":{"additionalProperties":true,"type":"object","title":"Block"},"source":{"$ref":"#/components/schemas/PinEvidence"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"refreshed_at":{"type":"string","format":"date-time","title":"Refreshed At"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"updated_by":{"type":"string","format":"uuid","title":"Updated By"},"refresh_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Error"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"undo_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Undo Until"}},"additionalProperties":false,"type":"object","required":["id","revision","question","block","source","created_at","updated_at","refreshed_at","created_by","updated_by","refresh_error","deleted_at","undo_until"],"title":"SharedPin"},"PinEvidence":{"properties":{"result_id":{"type":"string","format":"uuid","title":"Result Id"},"queried_at":{"type":"string","format":"date-time","title":"Queried At"},"dataset_source":{"anyOf":[{"$ref":"#/components/schemas/DemoSource"},{"type":"null"}]},"columns":{"items":{"$ref":"#/components/schemas/SqlColumn"},"type":"array","title":"Columns"},"rows":{"items":{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array"},"type":"array","title":"Rows"}},"additionalProperties":false,"type":"object","required":["result_id","queried_at","columns","rows"],"title":"PinEvidence"},"DemoSource":{"properties":{"kind":{"type":"string","const":"published_demo","title":"Kind","default":"published_demo"},"synthetic":{"type":"boolean","const":true,"title":"Synthetic","default":true},"dataset_version":{"type":"string","pattern":"^r[12]_[0-9]{8}_[a-f0-9]{64}$","title":"Dataset Version"},"as_of_date":{"type":"string","format":"date","title":"As Of Date"},"data_through":{"type":"string","format":"date","title":"Data Through"},"event_window_start":{"type":"string","format":"date-time","title":"Event Window Start"},"event_window_end":{"type":"string","format":"date-time","title":"Event Window End"},"observed_before":{"type":"string","format":"date-time","title":"Observed Before"},"recipe_version":{"type":"string","maxLength":100,"minLength":1,"title":"Recipe Version"},"content_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Content Sha256"},"logical_table":{"type":"string","title":"Logical Table"},"snapshot_table":{"type":"string","title":"Snapshot Table"},"definitions":{"additionalProperties":{"type":"string"},"type":"object","title":"Definitions"},"table_map":{"additionalProperties":{"$ref":"#/components/schemas/DemoTable"},"type":"object","title":"Table Map"},"definition_records":{"items":{"$ref":"#/components/schemas/DemoDefinition"},"type":"array","title":"Definition Records","default":[]},"event_window_scope":{"anyOf":[{"type":"string","const":"conversations"},{"type":"null"}],"title":"Event Window Scope"}},"additionalProperties":false,"type":"object","required":["dataset_version","as_of_date","data_through","event_window_start","event_window_end","observed_before","recipe_version","content_sha256","logical_table","snapshot_table","definitions"],"title":"DemoSource","description":"Captured provenance, safe to expose with authorized selected evidence."},"DemoTable":{"properties":{"physical_table":{"type":"string","title":"Physical Table"},"columns":{"items":{"$ref":"#/components/schemas/SqlColumn"},"type":"array","title":"Columns"},"row_count":{"type":"integer","maximum":5000,"minimum":0,"title":"Row Count"},"description":{"type":"string","maxLength":2048,"title":"Description"}},"additionalProperties":false,"type":"object","required":["physical_table","columns","row_count","description"],"title":"DemoTable"},"SqlColumn":{"properties":{"name":{"type":"string","title":"Name"},"type_name":{"type":"string","title":"Type Name"},"type_text":{"type":"string","title":"Type Text"}},"type":"object","required":["name","type_name","type_text"],"title":"SqlColumn"},"DemoDefinition":{"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"title":"Id"},"description":{"type":"string","maxLength":1024,"minLength":1,"title":"Description"},"population":{"type":"string","maxLength":512,"minLength":1,"title":"Population"},"time_basis":{"type":"string","maxLength":512,"minLength":1,"title":"Time Basis"},"units":{"type":"string","maxLength":128,"minLength":1,"title":"Units"}},"additionalProperties":false,"type":"object","required":["id","description","population","time_basis","units"],"title":"DemoDefinition"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/insights/pins":{"post":{"tags":["Insights"],"summary":"Create Pin","operationId":"create_pin_v1__workspace_id__insights_pins_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePinRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedPin"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}]}}}}
```

## GET /v1/{workspace\_id}/insights/pins/{pin\_id}

> Get Pin

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Insights"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"SharedPin":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"revision":{"type":"integer","title":"Revision"},"question":{"type":"string","title":"Question"},"block":{"additionalProperties":true,"type":"object","title":"Block"},"source":{"$ref":"#/components/schemas/PinEvidence"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"refreshed_at":{"type":"string","format":"date-time","title":"Refreshed At"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"updated_by":{"type":"string","format":"uuid","title":"Updated By"},"refresh_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Error"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"undo_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Undo Until"}},"additionalProperties":false,"type":"object","required":["id","revision","question","block","source","created_at","updated_at","refreshed_at","created_by","updated_by","refresh_error","deleted_at","undo_until"],"title":"SharedPin"},"PinEvidence":{"properties":{"result_id":{"type":"string","format":"uuid","title":"Result Id"},"queried_at":{"type":"string","format":"date-time","title":"Queried At"},"dataset_source":{"anyOf":[{"$ref":"#/components/schemas/DemoSource"},{"type":"null"}]},"columns":{"items":{"$ref":"#/components/schemas/SqlColumn"},"type":"array","title":"Columns"},"rows":{"items":{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array"},"type":"array","title":"Rows"}},"additionalProperties":false,"type":"object","required":["result_id","queried_at","columns","rows"],"title":"PinEvidence"},"DemoSource":{"properties":{"kind":{"type":"string","const":"published_demo","title":"Kind","default":"published_demo"},"synthetic":{"type":"boolean","const":true,"title":"Synthetic","default":true},"dataset_version":{"type":"string","pattern":"^r[12]_[0-9]{8}_[a-f0-9]{64}$","title":"Dataset Version"},"as_of_date":{"type":"string","format":"date","title":"As Of Date"},"data_through":{"type":"string","format":"date","title":"Data Through"},"event_window_start":{"type":"string","format":"date-time","title":"Event Window Start"},"event_window_end":{"type":"string","format":"date-time","title":"Event Window End"},"observed_before":{"type":"string","format":"date-time","title":"Observed Before"},"recipe_version":{"type":"string","maxLength":100,"minLength":1,"title":"Recipe Version"},"content_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Content Sha256"},"logical_table":{"type":"string","title":"Logical Table"},"snapshot_table":{"type":"string","title":"Snapshot Table"},"definitions":{"additionalProperties":{"type":"string"},"type":"object","title":"Definitions"},"table_map":{"additionalProperties":{"$ref":"#/components/schemas/DemoTable"},"type":"object","title":"Table Map"},"definition_records":{"items":{"$ref":"#/components/schemas/DemoDefinition"},"type":"array","title":"Definition Records","default":[]},"event_window_scope":{"anyOf":[{"type":"string","const":"conversations"},{"type":"null"}],"title":"Event Window Scope"}},"additionalProperties":false,"type":"object","required":["dataset_version","as_of_date","data_through","event_window_start","event_window_end","observed_before","recipe_version","content_sha256","logical_table","snapshot_table","definitions"],"title":"DemoSource","description":"Captured provenance, safe to expose with authorized selected evidence."},"DemoTable":{"properties":{"physical_table":{"type":"string","title":"Physical Table"},"columns":{"items":{"$ref":"#/components/schemas/SqlColumn"},"type":"array","title":"Columns"},"row_count":{"type":"integer","maximum":5000,"minimum":0,"title":"Row Count"},"description":{"type":"string","maxLength":2048,"title":"Description"}},"additionalProperties":false,"type":"object","required":["physical_table","columns","row_count","description"],"title":"DemoTable"},"SqlColumn":{"properties":{"name":{"type":"string","title":"Name"},"type_name":{"type":"string","title":"Type Name"},"type_text":{"type":"string","title":"Type Text"}},"type":"object","required":["name","type_name","type_text"],"title":"SqlColumn"},"DemoDefinition":{"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"title":"Id"},"description":{"type":"string","maxLength":1024,"minLength":1,"title":"Description"},"population":{"type":"string","maxLength":512,"minLength":1,"title":"Population"},"time_basis":{"type":"string","maxLength":512,"minLength":1,"title":"Time Basis"},"units":{"type":"string","maxLength":128,"minLength":1,"title":"Units"}},"additionalProperties":false,"type":"object","required":["id","description","population","time_basis","units"],"title":"DemoDefinition"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/insights/pins/{pin_id}":{"get":{"tags":["Insights"],"summary":"Get Pin","operationId":"get_pin_v1__workspace_id__insights_pins__pin_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"pin_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pin Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedPin"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## DELETE /v1/{workspace\_id}/insights/pins/{pin\_id}

> Unpin

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Insights"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"SharedPin":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"revision":{"type":"integer","title":"Revision"},"question":{"type":"string","title":"Question"},"block":{"additionalProperties":true,"type":"object","title":"Block"},"source":{"$ref":"#/components/schemas/PinEvidence"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"refreshed_at":{"type":"string","format":"date-time","title":"Refreshed At"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"updated_by":{"type":"string","format":"uuid","title":"Updated By"},"refresh_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Error"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"undo_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Undo Until"}},"additionalProperties":false,"type":"object","required":["id","revision","question","block","source","created_at","updated_at","refreshed_at","created_by","updated_by","refresh_error","deleted_at","undo_until"],"title":"SharedPin"},"PinEvidence":{"properties":{"result_id":{"type":"string","format":"uuid","title":"Result Id"},"queried_at":{"type":"string","format":"date-time","title":"Queried At"},"dataset_source":{"anyOf":[{"$ref":"#/components/schemas/DemoSource"},{"type":"null"}]},"columns":{"items":{"$ref":"#/components/schemas/SqlColumn"},"type":"array","title":"Columns"},"rows":{"items":{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array"},"type":"array","title":"Rows"}},"additionalProperties":false,"type":"object","required":["result_id","queried_at","columns","rows"],"title":"PinEvidence"},"DemoSource":{"properties":{"kind":{"type":"string","const":"published_demo","title":"Kind","default":"published_demo"},"synthetic":{"type":"boolean","const":true,"title":"Synthetic","default":true},"dataset_version":{"type":"string","pattern":"^r[12]_[0-9]{8}_[a-f0-9]{64}$","title":"Dataset Version"},"as_of_date":{"type":"string","format":"date","title":"As Of Date"},"data_through":{"type":"string","format":"date","title":"Data Through"},"event_window_start":{"type":"string","format":"date-time","title":"Event Window Start"},"event_window_end":{"type":"string","format":"date-time","title":"Event Window End"},"observed_before":{"type":"string","format":"date-time","title":"Observed Before"},"recipe_version":{"type":"string","maxLength":100,"minLength":1,"title":"Recipe Version"},"content_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Content Sha256"},"logical_table":{"type":"string","title":"Logical Table"},"snapshot_table":{"type":"string","title":"Snapshot Table"},"definitions":{"additionalProperties":{"type":"string"},"type":"object","title":"Definitions"},"table_map":{"additionalProperties":{"$ref":"#/components/schemas/DemoTable"},"type":"object","title":"Table Map"},"definition_records":{"items":{"$ref":"#/components/schemas/DemoDefinition"},"type":"array","title":"Definition Records","default":[]},"event_window_scope":{"anyOf":[{"type":"string","const":"conversations"},{"type":"null"}],"title":"Event Window Scope"}},"additionalProperties":false,"type":"object","required":["dataset_version","as_of_date","data_through","event_window_start","event_window_end","observed_before","recipe_version","content_sha256","logical_table","snapshot_table","definitions"],"title":"DemoSource","description":"Captured provenance, safe to expose with authorized selected evidence."},"DemoTable":{"properties":{"physical_table":{"type":"string","title":"Physical Table"},"columns":{"items":{"$ref":"#/components/schemas/SqlColumn"},"type":"array","title":"Columns"},"row_count":{"type":"integer","maximum":5000,"minimum":0,"title":"Row Count"},"description":{"type":"string","maxLength":2048,"title":"Description"}},"additionalProperties":false,"type":"object","required":["physical_table","columns","row_count","description"],"title":"DemoTable"},"SqlColumn":{"properties":{"name":{"type":"string","title":"Name"},"type_name":{"type":"string","title":"Type Name"},"type_text":{"type":"string","title":"Type Text"}},"type":"object","required":["name","type_name","type_text"],"title":"SqlColumn"},"DemoDefinition":{"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"title":"Id"},"description":{"type":"string","maxLength":1024,"minLength":1,"title":"Description"},"population":{"type":"string","maxLength":512,"minLength":1,"title":"Population"},"time_basis":{"type":"string","maxLength":512,"minLength":1,"title":"Time Basis"},"units":{"type":"string","maxLength":128,"minLength":1,"title":"Units"}},"additionalProperties":false,"type":"object","required":["id","description","population","time_basis","units"],"title":"DemoDefinition"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/insights/pins/{pin_id}":{"delete":{"tags":["Insights"],"summary":"Unpin","operationId":"unpin_v1__workspace_id__insights_pins__pin_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"pin_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pin Id"}},{"name":"revision","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"Revision"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedPin"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## POST /v1/{workspace\_id}/insights/pins/{pin\_id}/refresh

> Refresh Pin

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Insights"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"PinRevisionRequest":{"properties":{"revision":{"type":"integer","minimum":1,"title":"Revision"}},"additionalProperties":false,"type":"object","required":["revision"],"title":"PinRevisionRequest"},"SharedPin":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"revision":{"type":"integer","title":"Revision"},"question":{"type":"string","title":"Question"},"block":{"additionalProperties":true,"type":"object","title":"Block"},"source":{"$ref":"#/components/schemas/PinEvidence"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"refreshed_at":{"type":"string","format":"date-time","title":"Refreshed At"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"updated_by":{"type":"string","format":"uuid","title":"Updated By"},"refresh_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Error"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"undo_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Undo Until"}},"additionalProperties":false,"type":"object","required":["id","revision","question","block","source","created_at","updated_at","refreshed_at","created_by","updated_by","refresh_error","deleted_at","undo_until"],"title":"SharedPin"},"PinEvidence":{"properties":{"result_id":{"type":"string","format":"uuid","title":"Result Id"},"queried_at":{"type":"string","format":"date-time","title":"Queried At"},"dataset_source":{"anyOf":[{"$ref":"#/components/schemas/DemoSource"},{"type":"null"}]},"columns":{"items":{"$ref":"#/components/schemas/SqlColumn"},"type":"array","title":"Columns"},"rows":{"items":{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array"},"type":"array","title":"Rows"}},"additionalProperties":false,"type":"object","required":["result_id","queried_at","columns","rows"],"title":"PinEvidence"},"DemoSource":{"properties":{"kind":{"type":"string","const":"published_demo","title":"Kind","default":"published_demo"},"synthetic":{"type":"boolean","const":true,"title":"Synthetic","default":true},"dataset_version":{"type":"string","pattern":"^r[12]_[0-9]{8}_[a-f0-9]{64}$","title":"Dataset Version"},"as_of_date":{"type":"string","format":"date","title":"As Of Date"},"data_through":{"type":"string","format":"date","title":"Data Through"},"event_window_start":{"type":"string","format":"date-time","title":"Event Window Start"},"event_window_end":{"type":"string","format":"date-time","title":"Event Window End"},"observed_before":{"type":"string","format":"date-time","title":"Observed Before"},"recipe_version":{"type":"string","maxLength":100,"minLength":1,"title":"Recipe Version"},"content_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Content Sha256"},"logical_table":{"type":"string","title":"Logical Table"},"snapshot_table":{"type":"string","title":"Snapshot Table"},"definitions":{"additionalProperties":{"type":"string"},"type":"object","title":"Definitions"},"table_map":{"additionalProperties":{"$ref":"#/components/schemas/DemoTable"},"type":"object","title":"Table Map"},"definition_records":{"items":{"$ref":"#/components/schemas/DemoDefinition"},"type":"array","title":"Definition Records","default":[]},"event_window_scope":{"anyOf":[{"type":"string","const":"conversations"},{"type":"null"}],"title":"Event Window Scope"}},"additionalProperties":false,"type":"object","required":["dataset_version","as_of_date","data_through","event_window_start","event_window_end","observed_before","recipe_version","content_sha256","logical_table","snapshot_table","definitions"],"title":"DemoSource","description":"Captured provenance, safe to expose with authorized selected evidence."},"DemoTable":{"properties":{"physical_table":{"type":"string","title":"Physical Table"},"columns":{"items":{"$ref":"#/components/schemas/SqlColumn"},"type":"array","title":"Columns"},"row_count":{"type":"integer","maximum":5000,"minimum":0,"title":"Row Count"},"description":{"type":"string","maxLength":2048,"title":"Description"}},"additionalProperties":false,"type":"object","required":["physical_table","columns","row_count","description"],"title":"DemoTable"},"SqlColumn":{"properties":{"name":{"type":"string","title":"Name"},"type_name":{"type":"string","title":"Type Name"},"type_text":{"type":"string","title":"Type Text"}},"type":"object","required":["name","type_name","type_text"],"title":"SqlColumn"},"DemoDefinition":{"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"title":"Id"},"description":{"type":"string","maxLength":1024,"minLength":1,"title":"Description"},"population":{"type":"string","maxLength":512,"minLength":1,"title":"Population"},"time_basis":{"type":"string","maxLength":512,"minLength":1,"title":"Time Basis"},"units":{"type":"string","maxLength":128,"minLength":1,"title":"Units"}},"additionalProperties":false,"type":"object","required":["id","description","population","time_basis","units"],"title":"DemoDefinition"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/insights/pins/{pin_id}/refresh":{"post":{"tags":["Insights"],"summary":"Refresh Pin","operationId":"refresh_pin_v1__workspace_id__insights_pins__pin_id__refresh_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"pin_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pin Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinRevisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedPin"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## POST /v1/{workspace\_id}/insights/pins/{pin\_id}/undo

> Undo Unpin

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Insights"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"PinRevisionRequest":{"properties":{"revision":{"type":"integer","minimum":1,"title":"Revision"}},"additionalProperties":false,"type":"object","required":["revision"],"title":"PinRevisionRequest"},"SharedPin":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"revision":{"type":"integer","title":"Revision"},"question":{"type":"string","title":"Question"},"block":{"additionalProperties":true,"type":"object","title":"Block"},"source":{"$ref":"#/components/schemas/PinEvidence"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"refreshed_at":{"type":"string","format":"date-time","title":"Refreshed At"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"updated_by":{"type":"string","format":"uuid","title":"Updated By"},"refresh_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Error"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"undo_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Undo Until"}},"additionalProperties":false,"type":"object","required":["id","revision","question","block","source","created_at","updated_at","refreshed_at","created_by","updated_by","refresh_error","deleted_at","undo_until"],"title":"SharedPin"},"PinEvidence":{"properties":{"result_id":{"type":"string","format":"uuid","title":"Result Id"},"queried_at":{"type":"string","format":"date-time","title":"Queried At"},"dataset_source":{"anyOf":[{"$ref":"#/components/schemas/DemoSource"},{"type":"null"}]},"columns":{"items":{"$ref":"#/components/schemas/SqlColumn"},"type":"array","title":"Columns"},"rows":{"items":{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array"},"type":"array","title":"Rows"}},"additionalProperties":false,"type":"object","required":["result_id","queried_at","columns","rows"],"title":"PinEvidence"},"DemoSource":{"properties":{"kind":{"type":"string","const":"published_demo","title":"Kind","default":"published_demo"},"synthetic":{"type":"boolean","const":true,"title":"Synthetic","default":true},"dataset_version":{"type":"string","pattern":"^r[12]_[0-9]{8}_[a-f0-9]{64}$","title":"Dataset Version"},"as_of_date":{"type":"string","format":"date","title":"As Of Date"},"data_through":{"type":"string","format":"date","title":"Data Through"},"event_window_start":{"type":"string","format":"date-time","title":"Event Window Start"},"event_window_end":{"type":"string","format":"date-time","title":"Event Window End"},"observed_before":{"type":"string","format":"date-time","title":"Observed Before"},"recipe_version":{"type":"string","maxLength":100,"minLength":1,"title":"Recipe Version"},"content_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Content Sha256"},"logical_table":{"type":"string","title":"Logical Table"},"snapshot_table":{"type":"string","title":"Snapshot Table"},"definitions":{"additionalProperties":{"type":"string"},"type":"object","title":"Definitions"},"table_map":{"additionalProperties":{"$ref":"#/components/schemas/DemoTable"},"type":"object","title":"Table Map"},"definition_records":{"items":{"$ref":"#/components/schemas/DemoDefinition"},"type":"array","title":"Definition Records","default":[]},"event_window_scope":{"anyOf":[{"type":"string","const":"conversations"},{"type":"null"}],"title":"Event Window Scope"}},"additionalProperties":false,"type":"object","required":["dataset_version","as_of_date","data_through","event_window_start","event_window_end","observed_before","recipe_version","content_sha256","logical_table","snapshot_table","definitions"],"title":"DemoSource","description":"Captured provenance, safe to expose with authorized selected evidence."},"DemoTable":{"properties":{"physical_table":{"type":"string","title":"Physical Table"},"columns":{"items":{"$ref":"#/components/schemas/SqlColumn"},"type":"array","title":"Columns"},"row_count":{"type":"integer","maximum":5000,"minimum":0,"title":"Row Count"},"description":{"type":"string","maxLength":2048,"title":"Description"}},"additionalProperties":false,"type":"object","required":["physical_table","columns","row_count","description"],"title":"DemoTable"},"SqlColumn":{"properties":{"name":{"type":"string","title":"Name"},"type_name":{"type":"string","title":"Type Name"},"type_text":{"type":"string","title":"Type Text"}},"type":"object","required":["name","type_name","type_text"],"title":"SqlColumn"},"DemoDefinition":{"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"title":"Id"},"description":{"type":"string","maxLength":1024,"minLength":1,"title":"Description"},"population":{"type":"string","maxLength":512,"minLength":1,"title":"Population"},"time_basis":{"type":"string","maxLength":512,"minLength":1,"title":"Time Basis"},"units":{"type":"string","maxLength":128,"minLength":1,"title":"Units"}},"additionalProperties":false,"type":"object","required":["id","description","population","time_basis","units"],"title":"DemoDefinition"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/insights/pins/{pin_id}/undo":{"post":{"tags":["Insights"],"summary":"Undo Unpin","operationId":"undo_unpin_v1__workspace_id__insights_pins__pin_id__undo_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"pin_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pin Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinRevisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedPin"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```


---

# 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.concurrence.com/api-reference/readme/platform/insights.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.
