Skip to content

Create Artifact

POST
/api/v1/team-chat/threads/{thread_id}/artifacts
curl --request POST \
--url https://api.ultimateteam.ai/api/v1/team-chat/threads/example/artifacts \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "artifact_type": "example", "content": {}, "created_by": "example", "name": "example" }'

Create a shared artifact in a conversation thread.

Args: thread_id: The thread UUID string. body: Artifact creation data. user: The authenticated user context. svc: The artifact service (injected).

Returns: The created artifact.

thread_id
required
Thread Id
string
Media typeapplication/json
ArtifactCreate

Input schema for creating a shared artifact.

Attributes: artifact_type: Type classification. name: Human-readable artifact name. content: The artifact data. created_by: Agent role that created it.

object
artifact_type
required
Artifact Type
string
content
required
Content
object
key
additional properties
any
created_by
required
Created By
string
name
required
Name
string
Examplegenerated
{
"artifact_type": "example",
"content": {},
"created_by": "example",
"name": "example"
}

Successful Response

Media typeapplication/json
ArtifactResponse

Response schema for a persisted shared artifact.

Attributes: id: Unique artifact identifier. thread_id: Owning thread identifier. tenant_id: Owning tenant UUID. artifact_type: Type classification. name: Human-readable artifact name. content: The artifact data. version: Version number. created_by: Agent role that created it. updated_by: Agent role that last updated it. parent_artifact_id: Previous version’s ID. created_at: When the artifact was created. updated_at: When the artifact was last updated.

object
artifact_type
required
Artifact Type
string
content
required
Content
object
key
additional properties
any
created_at
required
Created At
string format: date-time
created_by
required
Created By
string
id
required
Id
string format: uuid
name
required
Name
string
parent_artifact_id
required
Any of:
string format: uuid
tenant_id
required
Tenant Id
string format: uuid
thread_id
required
Thread Id
string format: uuid
updated_at
required
Updated At
string format: date-time
updated_by
required
Any of:
string
version
required
Version
integer
Examplegenerated
{
"artifact_type": "example",
"content": {},
"created_at": "2026-04-15T12:00:00Z",
"created_by": "example",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"parent_artifact_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"tenant_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"thread_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"updated_at": "2026-04-15T12:00:00Z",
"updated_by": "example",
"version": 1
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}