Skip to main content
GET
/
api
/
v1
/
chat
/
threads
Get Chat Threads
curl --request GET \
  --url http://localhost:8000/api/v1/chat/threads \
  --header 'Authorization: Bearer <token>'
[
  {
    "google_ads_customer": {
      "id": 123,
      "date_added": "2023-11-07T05:31:56Z",
      "date_updated": "2023-11-07T05:31:56Z",
      "descriptive_name": "<string>",
      "currency_code": "<string>",
      "time_zone": "<string>",
      "status": "<string>",
      "manager": true,
      "is_active": true,
      "is_deleted": false
    },
    "thread_id": "<string>",
    "is_completed": true,
    "date_added": "2023-11-07T05:31:56Z",
    "date_updated": "2023-11-07T05:31:56Z",
    "name": "<string>",
    "description": "<string>",
    "google_ads_login_customer_id": 123,
    "assistant": {
      "id": "<string>",
      "assistant_type": "onboarding",
      "date_added": "2023-11-07T05:31:56Z",
      "date_updated": "2023-11-07T05:31:56Z"
    }
  }
]

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

company_id
integer
required
assistant_type
enum<string> | null

The Assistant types.

Available options:
onboarding,
general

Response

Successful Response

google_ads_customer
The Google Ads customer used to fetch data for this chat thread · object
required

Schema for GoogleAdsCustomer model.

thread_id
string
required
is_completed
boolean
required
date_added
string<date-time>
required
date_updated
string<date-time>
required
name
string | null
description
string | null
google_ads_login_customer_id
integer | null
assistant
AssistantSchema · object

The schema for an assistant.