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"
}
}
]Get the list of chat threads.
Args: customer_id (int): The ID of the Google Ads customer assistant_type (AssistantType | None): The type of the chat thread (optional) user (User): The current user
Returns: Dict containing the list of 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"
}
}
]The access token received from the authorization server in the OAuth 2.0 flow.
The Assistant types.
onboarding, general Successful Response
Schema for GoogleAdsCustomer model.
Show child attributes
The customer ID
The descriptive name of the customer
The currency code
The time zone
The status of the customer
Whether the customer is a manager account