- attach_dashboard - AttachDashboard
- attach_dataset - AttachDataset
- cancel_template_execution - Cancel template execution for a specific template header
- create_playbook - CreatePlaybook
- deactivate - DeactivatePlaybook
- delete - DeletePlaybook
- demo_playbook - DemoPlaybook
- deploy - DeployPlaybook
- duplicate - DuplicatePlaybook
- favorite_report - Favorite report management
- get_active_subscribed_count - GetActiveSubscribedPlaybooksCount
- get_chat_reports_summary - Lightweight endpoint for chat report drawer - returns summaries without full blocks
- get_members_with - GetMembersWithPlaybooks
- fetch - GetPlaybook
- get_batch_run - Get a specific batch run
- get_playbook_lineage - GetPlaybookLineage
- get_reports - GetPlaybookReports
- get_playbook_reports_batch - Get reports for multiple template data IDs in a single batch request
- get - GetPlaybooks
- get_playbooks_previews - GetPlaybooksPreviews
- get_report_by_id - Get a single report by ID
- get_reports_with_filters - GetReportsWithFilters
- list_slack_channel_context_playbooks - List all Slack channels context playbook mappings for the organization
- list_all_teams_channel_context_playbooks - ListAllTeamsChannelContextPlaybooks
- list_batch_runs - List batch runs for a playbook
- list_slack_channels_for_context - List Slack channel IDs where the given playbook is set as the context
- list_teams_channels_for_context_playbook - ListTeamsChannelsForContextPlaybook
- mark_report_as_read - Report read tracking
- preview_slack_report - PreviewSlackReport
- remove_dashboard - RemoveDashboard
- remove_dataset - RemoveDataset
- run - RunPlaybook
- set_slack_channel_context_playbook - Set the context playbook for a Slack channel. This associates the given playbook to a Slack channel so that Slack messages in that channel use the playbook's context by default.
- set_teams_channel_context - SetTeamsChannelContextPlaybook
- subscribe - SubscribeToPlaybook
- unset_slack_channel_context_playbook - Unset the context playbook for a Slack channel. This clears any association so that messages in this channel no longer use a specific playbook context.
- unset_teams_channel_context - UnsetTeamsChannelContextPlaybook
- unsubscribe - UnsubscribeFromPlaybook
- update - UpdatePlaybook
AttachDashboard
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.attach_dashboard()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
dashboard_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceAttachDashboardResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
AttachDataset
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.attach_dataset()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
dataset_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceAttachDatasetResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
Cancel template execution for a specific template header
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.cancel_template_execution()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
template_header_id |
Optional[str] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceCancelTemplateExecutionResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
CreatePlaybook
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.create_playbook(body={})
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
body |
models.TextqlRPCPublicPlaybookCreatePlaybookRequest | ✔️ | N/A |
connect_timeout_ms |
Optional[float] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceCreatePlaybookResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
DeactivatePlaybook
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.deactivate()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceDeactivatePlaybookResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
DeletePlaybook
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.delete()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceDeletePlaybookResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
DemoPlaybook
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.demo_playbook()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
chat_id |
Optional[str] | ➖ | N/A |
person_name |
Optional[str] | ➖ | N/A |
job_title |
Optional[str] | ➖ | N/A |
target_email |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceDemoPlaybookResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
DeployPlaybook
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.deploy()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceDeployPlaybookResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
DuplicatePlaybook
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.duplicate()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceDuplicatePlaybookResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
Favorite report management
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.favorite_report()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | UUID |
report_id |
Optional[str] | ➖ | UUID |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceFavoriteReportResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
GetActiveSubscribedPlaybooksCount
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.get_active_subscribed_count(body={})
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
body |
models.TextqlRPCPublicPlaybookGetActiveSubscribedPlaybooksCountRequest | ✔️ | N/A |
connect_timeout_ms |
Optional[float] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceGetActiveSubscribedPlaybooksCountResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
Lightweight endpoint for chat report drawer - returns summaries without full blocks
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.get_chat_reports_summary()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
chat_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceGetChatReportsSummaryResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
GetMembersWithPlaybooks
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.get_members_with(body={})
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
body |
models.TextqlRPCPublicPlaybookGetMembersWithPlaybooksRequest | ✔️ | N/A |
connect_timeout_ms |
Optional[float] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceGetMembersWithPlaybooksResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
GetPlaybook
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.fetch()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
limit |
Optional[int] | ➖ | N/A |
offset |
Optional[int] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceGetPlaybookResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
Get a specific batch run
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.get_batch_run()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
batch_run_id |
Optional[str] | ➖ | UUID |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceGetPlaybookBatchRunResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
GetPlaybookLineage
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.get_playbook_lineage()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceGetPlaybookLineageResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
GetPlaybookReports
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.get_reports()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | UUID |
limit |
Optional[int] | ➖ | N/A |
offset |
Optional[int] | ➖ | N/A |
chat_id |
OptionalNullable[str] | ➖ | UUID |
template_data_id |
OptionalNullable[str] | ➖ | UUID |
batch_run_id |
OptionalNullable[str] | ➖ | UUID - filter reports by batch run |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceGetPlaybookReportsResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
Get reports for multiple template data IDs in a single batch request
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.get_playbook_reports_batch()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | UUID |
template_data_ids |
List[str] | ➖ | List of template data UUIDs to fetch reports for |
limit_per_template |
Optional[int] | ➖ | Max reports to return per template_data_id (default: 100) |
batch_run_id |
OptionalNullable[str] | ➖ | UUID - filter reports and artifacts by batch run |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceGetPlaybookReportsBatchResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
GetPlaybooks
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.get()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
member_only |
Optional[bool] | ➖ | N/A |
limit |
Optional[int] | ➖ | N/A |
offset |
Optional[int] | ➖ | N/A |
search_term |
OptionalNullable[str] | ➖ | N/A |
status_filter |
Optional[models.TextqlRPCPublicPlaybookPlaybookStatus] | ➖ | N/A |
creator_member_id |
OptionalNullable[str] | ➖ | single-select; superseded by creator_member_ids when that is non-empty |
sort_by |
Optional[models.TextqlRPCPublicPlaybookPlaybookSortField] | ➖ | N/A |
sort_direction |
Optional[models.TextqlRPCPublicCommonSortDirection] | ➖ | Common enum for sort direction used across multiple services |
subscribed_first |
OptionalNullable[bool] | ➖ | N/A |
only_subscribed |
OptionalNullable[bool] | ➖ | N/A |
shared_with_me |
OptionalNullable[bool] | ➖ | N/A |
include_shared_drafts |
OptionalNullable[bool] | ➖ | N/A |
statuses |
List[models.TextqlRPCPublicPlaybookPlaybookStatus] | ➖ | Multi-select filters (union). Each supersedes its single-value counterpart when non-empty. |
creator_member_ids |
List[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceGetPlaybooksResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
GetPlaybooksPreviews
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.get_playbooks_previews()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
only_subscribed |
Optional[bool] | ➖ | N/A |
status_filter |
Optional[models.TextqlRPCPublicPlaybookPlaybookStatus] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceGetPlaybooksPreviewsResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
Get a single report by ID
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.get_report_by_id()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
report_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceGetReportByIDResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
GetReportsWithFilters
import os
from textql_sdk import Textql
from textql_sdk.utils import parse_datetime
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.get_reports_with_filters(filters={
"start_time": parse_datetime("2023-01-15T01:30:15.01Z"),
"end_time": parse_datetime("2023-01-15T01:30:15.01Z"),
})
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
filters |
Optional[models.TextqlRPCPublicPlaybookReportFilters] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceGetReportsWithFiltersResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
List all Slack channels context playbook mappings for the organization
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.list_slack_channel_context_playbooks(body={})
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
body |
models.TextqlRPCPublicPlaybookListAllSlackChannelContextPlaybooksRequest | ✔️ | N/A |
connect_timeout_ms |
Optional[float] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceListAllSlackChannelContextPlaybooksResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
ListAllTeamsChannelContextPlaybooks
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.list_all_teams_channel_context_playbooks(body={})
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
body |
models.TextqlRPCPublicPlaybookListAllTeamsChannelContextPlaybooksRequest | ✔️ | N/A |
connect_timeout_ms |
Optional[float] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceListAllTeamsChannelContextPlaybooksResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
List batch runs for a playbook
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.list_batch_runs()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | UUID |
limit |
OptionalNullable[int] | ➖ | Max number of results (default: 50) |
offset |
OptionalNullable[int] | ➖ | Offset for pagination (default: 0) |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceListPlaybookBatchRunsResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
List Slack channel IDs where the given playbook is set as the context
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.list_slack_channels_for_context()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | UUID |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceListSlackChannelsForContextPlaybookResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
ListTeamsChannelsForContextPlaybook
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.list_teams_channels_for_context_playbook()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceListTeamsChannelsForContextPlaybookResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
Report read tracking
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.mark_report_as_read()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
report_id |
Optional[str] | ➖ | UUID |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceMarkReportAsReadResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
PreviewSlackReport
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.preview_slack_report()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
cell |
Optional[models.TextqlRPCPublicCellsReportCell] | ➖ | N/A |
chat_id |
Optional[str] | ➖ | N/A |
slack_channel_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServicePreviewSlackReportResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
RemoveDashboard
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.remove_dashboard()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
dashboard_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceRemoveDashboardResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
RemoveDataset
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.remove_dataset()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
dataset_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceRemoveDatasetResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
RunPlaybook
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.run()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
dry_run |
Optional[bool] | ➖ | If true, runs without sending notifications |
template_id |
OptionalNullable[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceRunPlaybookResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
Set the context playbook for a Slack channel. This associates the given playbook to a Slack channel so that Slack messages in that channel use the playbook's context by default.
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.set_slack_channel_context_playbook()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | The playbook to associate |
slack_channel_id |
Optional[str] | ➖ | Slack channel ID (e.g., C123...) |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceSetSlackChannelContextPlaybookResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
SetTeamsChannelContextPlaybook
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.set_teams_channel_context()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
teams_channel_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceSetTeamsChannelContextPlaybookResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
SubscribeToPlaybook
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.subscribe()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceSubscribeToPlaybookResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
Unset the context playbook for a Slack channel. This clears any association so that messages in this channel no longer use a specific playbook context.
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.unset_slack_channel_context_playbook()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
slack_channel_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceUnsetSlackChannelContextPlaybookResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
UnsetTeamsChannelContextPlaybook
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.unset_teams_channel_context()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
teams_channel_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceUnsetTeamsChannelContextPlaybookResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
UnsubscribeFromPlaybook
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.unsubscribe()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceUnsubscribeFromPlaybookResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
UpdatePlaybook
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.playbooks.update()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
playbook_id |
Optional[str] | ➖ | N/A |
name |
OptionalNullable[str] | ➖ | N/A |
prompt |
OptionalNullable[str] | ➖ | N/A |
status |
Optional[models.TextqlRPCPublicPlaybookPlaybookStatus] | ➖ | N/A |
trigger_type |
Optional[models.TextqlRPCPublicPlaybookPlaybookTriggerType] | ➖ | N/A |
cron_string |
OptionalNullable[str] | ➖ | N/A |
dataset_ids |
Optional[models.TextqlRPCPublicPlaybookStringList] | ➖ | N/A |
connector_id |
OptionalNullable[int] | ➖ | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. Deprecated: use connector_ids instead |
reference_report_id |
OptionalNullable[str] | ➖ | N/A |
paradigm_options |
Optional[models.TextqlRPCPublicParadigmParadigmOptions] | ➖ | N/A |
paradigm_type |
Optional[models.TextqlRPCParadigmParamsParadigmType] | ➖ | N/A |
email_addresses |
Optional[models.TextqlRPCPublicPlaybookStringList] | ➖ | N/A |
slack_channel_id |
OptionalNullable[str] | ➖ | N/A |
tagged_slack_user_ids |
Optional[models.TextqlRPCPublicPlaybookStringList] | ➖ | N/A |
report_output_style |
Optional[models.TextqlRPCPublicPlaybookPlaybookReportStyle] | ➖ | N/A |
template_header_id |
OptionalNullable[str] | ➖ | N/A |
selected_template_data_ids |
Optional[models.TextqlRPCPublicPlaybookStringList] | ➖ | N/A |
max_concurrent_templates |
OptionalNullable[int] | ➖ | N/A |
auto_optimize_concurrency |
OptionalNullable[bool] | ➖ | N/A |
connector_ids |
Optional[models.TextqlRPCPublicPlaybookInt32List] | ➖ | N/A |
template_data_filters |
Optional[models.TextqlRPCPublicPlaybookFilterConditionList] | ➖ | N/A |
llm_model |
Optional[models.TextqlRPCPublicChatLlmModel] | ➖ | N/A |
chat_access_mode |
Optional[models.TextqlRPCPublicPlaybookChatAccessMode] | ➖ | N/A |
chat_access_overrides |
Optional[models.TextqlRPCPublicPlaybookChatAccessOverrideList] | ➖ | N/A |
chat_is_public |
OptionalNullable[bool] | ➖ | N/A |
dashboard_ids |
Optional[models.TextqlRPCPublicPlaybookStringList] | ➖ | N/A |
recipient_email_column |
OptionalNullable[str] | ➖ | N/A |
teams_channel_id |
OptionalNullable[str] | ➖ | N/A |
tagged_teams_user_aad_ids |
Optional[models.TextqlRPCPublicPlaybookStringList] | ➖ | N/A |
api_access_key_ids |
Optional[models.TextqlRPCPublicPlaybookStringList] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PlaybookServiceUpdatePlaybookResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |