dambel

دمبل

shevron
ورود | ثبت نام

API Docs / ai / threads / create



POST /api/v1/ai/threads

Creates a new AI thread.


Permissions

PermissionDescription
ai_threads.createCreate new threads

Request Body Parameters

NameTypeRequiredDescriptionExample
titlestringNoOptional title for the thread"My Thread"
context_typestringNoOptional context type"plan"
context_idintNoOptional context ID42

Request Example

{
  "title": "My Thread",
  "context_type": "plan",
  "context_id": 42
}

Response

201 Created

Returns the created AI thread resource.

Example

{ /* ai thread resource */ }

For a full schema, see AI Thread Resource.


Error Responses

StatusDescriptionReference
422Validation errorValidation error
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error
footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutube