CreateStarOpsChat - Send a message in a DevOps AI thread

Updated at:

Calling this API consumes AI credits. For billing rules, refer to AI Assistant management.

Applicable editions

Central edition, Region edition

Service endpoint and authorization

Product

Resource

Required permission

DevOps AI Assistant

Q&A

Read and write

Request syntax

Central edition

POST https://{domain}/oapi/v1/aiAssistant/organizations/{organizationId}/chat

Region edition

POST https://{domain}/oapi/v1/aiAssistant/chat

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

The personal access token.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

In

Required

Description

Example

organizationId

string

path

  • Yes (for the Central edition)

  • No (for the Region edition)

[Description pending]

Accept

string

header

Yes

[Description pending]

-

object

body

No

[Description pending]

message

string

body

Yes

The user message text. Maximum: 65536 UTF-8 bytes.

threadId

string

body

Yes

[Description pending]

Request examples

Central edition

curl -X 'POST' \
  'https://{domain}/oapi/v1/aiAssistant/organizations/{organizationId}/chat' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
  --data '
    {
        "message": "",
        "threadId": ""
    }'

Region edition

curl -X 'POST' \
  'https://{domain}/oapi/v1/aiAssistant/chat' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
  --data '
    {
        "message": "",
        "threadId": ""
    }'

Response parameters

Parameter

Type

Description

Example

-

string

Response sample

Error codes

For error codes, see the Error Code Center.