Azure OpenAI (preview:2025-01-01)

2025/02/20 • 40 new methods

ListAssistants (new)
Description :  Gets a list of assistants that were previously created.
Reference :  Link ¶

⚼ Request

GET:  /assistants
{
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
object: enum ,
data:
[
{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
description: string ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
tool_resources: object ,
temperature: number ,
top_p: number ,
response_format: string ,
metadata: object ,
}
,
]
,
first_id: string ,
last_id: string ,
has_more: boolean ,
}
CreateAssistant (new)
Description :  Creates a new assistant.
Reference :  Link ¶

⚼ Request

POST:  /assistants
{
body:
{
model: string ,
name: string ,
description: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
tool_resources: object ,
temperature: number ,
top_p: number ,
response_format: string ,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
description: string ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
tool_resources: object ,
temperature: number ,
top_p: number ,
response_format: string ,
metadata: object ,
}
GetAssistant (new)
Description :  Retrieves an existing assistant.
Reference :  Link ¶

⚼ Request

GET:  /assistants/{assistantId}
{
assistantId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
description: string ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
tool_resources: object ,
temperature: number ,
top_p: number ,
response_format: string ,
metadata: object ,
}
UpdateAssistant (new)
Description :  Modifies an existing assistant.
Reference :  Link ¶

⚼ Request

POST:  /assistants/{assistantId}
{
assistantId: string ,
body:
{
model: string ,
name: string ,
description: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
}
,
}
,
temperature: number ,
top_p: number ,
response_format: string ,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
description: string ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
tool_resources: object ,
temperature: number ,
top_p: number ,
response_format: string ,
metadata: object ,
}
DeleteAssistant (new)
Description :  Deletes an assistant.
Reference :  Link ¶

⚼ Request

DELETE:  /assistants/{assistantId}
{
assistantId: string ,
}

⚐ Response (200)

{
id: string ,
deleted: boolean ,
object: enum ,
}
ListFiles (new)
Description :  Gets a list of previously uploaded files.
Reference :  Link ¶

⚼ Request

GET:  /files
{
purpose: string ,
}

⚐ Response (200)

{
object: enum ,
data:
[
{
object: enum ,
id: string ,
bytes: integer ,
filename: string ,
created_at: integer ,
purpose: enum ,
status: enum ,
status_details: string ,
}
,
]
,
}
UploadFile (new)
Description :  Uploads a file for use by other operations.
Reference :  Link ¶

⚼ Request

POST:  /files
{
file: file ,
purpose: string ,
filename: string ,
}

⚐ Response (200)

{
object: enum ,
id: string ,
bytes: integer ,
filename: string ,
created_at: integer ,
purpose: enum ,
status: enum ,
status_details: string ,
}
GetFile (new)
Description :  Returns information about a specific file. Does not retrieve file content.
Reference :  Link ¶

⚼ Request

GET:  /files/{fileId}
{
fileId: string ,
}

⚐ Response (200)

{
object: enum ,
id: string ,
bytes: integer ,
filename: string ,
created_at: integer ,
purpose: enum ,
status: enum ,
status_details: string ,
}
DeleteFile (new)
Description :  Delete a previously uploaded file.
Reference :  Link ¶

⚼ Request

DELETE:  /files/{fileId}
{
fileId: string ,
}

⚐ Response (200)

{
id: string ,
deleted: boolean ,
object: enum ,
}
GetFileContent (new)
Description :  Returns information about a specific file. Does not retrieve file content.
Reference :  Link ¶

⚼ Request

GET:  /files/{fileId}/content
{
fileId: string ,
}

⚐ Response (200)

{
$schema: string ,
}
CreateThread (new)
Description :  Creates a new thread. Threads contain messages and can be run by assistants.
Reference :  Link ¶

⚼ Request

POST:  /threads
{
body:
{
messages:
[
{
role: enum ,
content: string ,
attachments:
[
{
file_id: string ,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}
,
]
,
tool_resources: object ,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
tool_resources: object ,
metadata: object ,
}
GetThread (new)
Description :  Gets information about an existing thread.
Reference :  Link ¶

⚼ Request

GET:  /threads/{threadId}
{
threadId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
tool_resources: object ,
metadata: object ,
}
UpdateThread (new)
Description :  Modifies an existing thread.
Reference :  Link ¶

⚼ Request

POST:  /threads/{threadId}
{
threadId: string ,
body:
{
tool_resources: object ,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
tool_resources: object ,
metadata: object ,
}
DeleteThread (new)
Description :  Deletes an existing thread.
Reference :  Link ¶

⚼ Request

DELETE:  /threads/{threadId}
{
threadId: string ,
}

⚐ Response (200)

{
id: string ,
deleted: boolean ,
object: enum ,
}
ListMessages (new)
Description :  Gets a list of messages that exist on a thread.
Reference :  Link ¶

⚼ Request

GET:  /threads/{threadId}/messages
{
threadId: string ,
runId: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
object: enum ,
data:
[
{
id: string ,
object: enum ,
created_at: integer ,
thread_id: string ,
status: enum ,
incomplete_details: object ,
completed_at: integer ,
incomplete_at: integer ,
role: enum ,
content:
[
{
type: string ,
}
,
]
,
assistant_id: string ,
run_id: string ,
attachments:
[
{
file_id: string ,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}
,
]
,
first_id: string ,
last_id: string ,
has_more: boolean ,
}
CreateMessage (new)
Description :  Creates a new message on a specified thread.
Reference :  Link ¶

⚼ Request

POST:  /threads/{threadId}/messages
{
threadId: string ,
body:
{
role: enum ,
content: string ,
attachments:
[
{
file_id: string ,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
thread_id: string ,
status: enum ,
incomplete_details: object ,
completed_at: integer ,
incomplete_at: integer ,
role: enum ,
content:
[
{
type: string ,
}
,
]
,
assistant_id: string ,
run_id: string ,
attachments:
[
{
file_id: string ,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}
GetMessage (new)
Description :  Gets an existing message from an existing thread.
Reference :  Link ¶

⚼ Request

GET:  /threads/{threadId}/messages/{messageId}
{
threadId: string ,
messageId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
thread_id: string ,
status: enum ,
incomplete_details: object ,
completed_at: integer ,
incomplete_at: integer ,
role: enum ,
content:
[
{
type: string ,
}
,
]
,
assistant_id: string ,
run_id: string ,
attachments:
[
{
file_id: string ,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}
UpdateMessage (new)
Description :  Modifies an existing message on an existing thread.
Reference :  Link ¶

⚼ Request

POST:  /threads/{threadId}/messages/{messageId}
{
threadId: string ,
messageId: string ,
body:
{
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
thread_id: string ,
status: enum ,
incomplete_details: object ,
completed_at: integer ,
incomplete_at: integer ,
role: enum ,
content:
[
{
type: string ,
}
,
]
,
assistant_id: string ,
run_id: string ,
attachments:
[
{
file_id: string ,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}
ListRuns (new)
Description :  Gets a list of runs for a specified thread.
Reference :  Link ¶

⚼ Request

GET:  /threads/{threadId}/runs
{
threadId: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
object: enum ,
data:
[
{
id: string ,
object: enum ,
thread_id: string ,
assistant_id: string ,
status: enum ,
required_action: object ,
last_error: object ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
created_at: integer ,
expires_at: integer ,
started_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
incomplete_details: enum ,
usage: object ,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy: object ,
tool_choice: string ,
parallel_tool_calls: boolean ,
response_format: string ,
metadata: object ,
}
,
]
,
first_id: string ,
last_id: string ,
has_more: boolean ,
}
CreateRun (new)
Description :  Creates a new run for an assistant thread.
Reference :  Link ¶

⚼ Request

POST:  /threads/{threadId}/runs
{
threadId: string ,
include[]: array ,
body:
{
assistant_id: string ,
model: string ,
instructions: string ,
additional_instructions: string ,
additional_messages:
[
{
id: string ,
object: enum ,
created_at: integer ,
thread_id: string ,
status: enum ,
incomplete_details: object ,
completed_at: integer ,
incomplete_at: integer ,
role: enum ,
content:
[
{
type: string ,
}
,
]
,
assistant_id: string ,
run_id: string ,
attachments:
[
{
file_id: string ,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}
,
]
,
tools:
[
{
type: string ,
}
,
]
,
parallel_tool_calls: boolean ,
stream: boolean ,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy: object ,
tool_choice: string ,
response_format: string ,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
thread_id: string ,
assistant_id: string ,
status: enum ,
required_action: object ,
last_error: object ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
created_at: integer ,
expires_at: integer ,
started_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
incomplete_details: enum ,
usage: object ,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy: object ,
tool_choice: string ,
parallel_tool_calls: boolean ,
response_format: string ,
metadata: object ,
}
GetRun (new)
Description :  Gets an existing run from an existing thread.
Reference :  Link ¶

⚼ Request

GET:  /threads/{threadId}/runs/{runId}
{
threadId: string ,
runId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
thread_id: string ,
assistant_id: string ,
status: enum ,
required_action: object ,
last_error: object ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
created_at: integer ,
expires_at: integer ,
started_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
incomplete_details: enum ,
usage: object ,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy: object ,
tool_choice: string ,
parallel_tool_calls: boolean ,
response_format: string ,
metadata: object ,
}
UpdateRun (new)
Description :  Modifies an existing thread run.
Reference :  Link ¶

⚼ Request

POST:  /threads/{threadId}/runs/{runId}
{
threadId: string ,
runId: string ,
body:
{
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
thread_id: string ,
assistant_id: string ,
status: enum ,
required_action: object ,
last_error: object ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
created_at: integer ,
expires_at: integer ,
started_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
incomplete_details: enum ,
usage: object ,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy: object ,
tool_choice: string ,
parallel_tool_calls: boolean ,
response_format: string ,
metadata: object ,
}
CancelRun (new)
Description :  Cancels a run of an in progress thread.
Reference :  Link ¶

⚼ Request

POST:  /threads/{threadId}/runs/{runId}/cancel
{
threadId: string ,
runId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
thread_id: string ,
assistant_id: string ,
status: enum ,
required_action: object ,
last_error: object ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
created_at: integer ,
expires_at: integer ,
started_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
incomplete_details: enum ,
usage: object ,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy: object ,
tool_choice: string ,
parallel_tool_calls: boolean ,
response_format: string ,
metadata: object ,
}
ListRunSteps (new)
Description :  Gets a list of run steps from a thread run.
Reference :  Link ¶

⚼ Request

GET:  /threads/{threadId}/runs/{runId}/steps
{
threadId: string ,
runId: string ,
include[]: array ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
object: enum ,
data:
[
{
id: string ,
object: enum ,
type: enum ,
assistant_id: string ,
thread_id: string ,
run_id: string ,
status: enum ,
step_details:
{
type: enum ,
}
,
last_error: object ,
created_at: integer ,
expired_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
usage: object ,
metadata: object ,
}
,
]
,
first_id: string ,
last_id: string ,
has_more: boolean ,
}
GetRunStep (new)
Description :  Gets a single run step from a thread run.
Reference :  Link ¶

⚼ Request

GET:  /threads/{threadId}/runs/{runId}/steps/{stepId}
{
threadId: string ,
runId: string ,
stepId: string ,
include[]: array ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
type: enum ,
assistant_id: string ,
thread_id: string ,
run_id: string ,
status: enum ,
step_details:
{
type: enum ,
}
,
last_error: object ,
created_at: integer ,
expired_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
usage: object ,
metadata: object ,
}
SubmitToolOutputsToRun (new)
Description :  Submits outputs from tools as requested by tool calls in a run. Runs that need submitted tool outputs will have a status of 'requires_action' with a required_action.type of 'submit_tool_outputs'.
Reference :  Link ¶

⚼ Request

POST:  /threads/{threadId}/runs/{runId}/submit_tool_outputs
{
threadId: string ,
runId: string ,
body:
{
tool_outputs:
[
{
tool_call_id: string ,
output: string ,
}
,
]
,
stream: boolean ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
thread_id: string ,
assistant_id: string ,
status: enum ,
required_action: object ,
last_error: object ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
created_at: integer ,
expires_at: integer ,
started_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
incomplete_details: enum ,
usage: object ,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy: object ,
tool_choice: string ,
parallel_tool_calls: boolean ,
response_format: string ,
metadata: object ,
}
CreateThreadAndRun (new)
Description :  Creates a new assistant thread and immediately starts a run using that new thread.
Reference :  Link ¶

⚼ Request

POST:  /threads/runs
{
body:
{
assistant_id: string ,
thread:
{
messages:
[
{
role: enum ,
content: string ,
attachments:
[
{
file_id: string ,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}
,
]
,
tool_resources: object ,
metadata: object ,
}
,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
parallel_tool_calls: boolean ,
tool_resources: object ,
stream: boolean ,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy: object ,
tool_choice: string ,
response_format: string ,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
thread_id: string ,
assistant_id: string ,
status: enum ,
required_action: object ,
last_error: object ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
created_at: integer ,
expires_at: integer ,
started_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
incomplete_details: enum ,
usage: object ,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy: object ,
tool_choice: string ,
parallel_tool_calls: boolean ,
response_format: string ,
metadata: object ,
}
ListVectorStores (new)
Description :  Returns a list of vector stores.
Reference :  Link ¶

⚼ Request

GET:  /vector_stores
{
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
object: enum ,
data:
[
{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
usage_bytes: integer ,
file_counts:
{
in_progress: integer ,
completed: integer ,
failed: integer ,
cancelled: integer ,
total: integer ,
}
,
status: enum ,
expires_after:
{
anchor: enum ,
days: integer ,
}
,
expires_at: integer ,
last_active_at: integer ,
metadata: object ,
}
,
]
,
first_id: string ,
last_id: string ,
has_more: boolean ,
}
CreateVectorStore (new)
Description :  Creates a vector store.
Reference :  Link ¶

⚼ Request

POST:  /vector_stores
{
body:
{
file_ids:
[
string ,
]
,
name: string ,
expires_after:
{
anchor: enum ,
days: integer ,
}
,
chunking_strategy:
{
type: enum ,
}
,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
usage_bytes: integer ,
file_counts:
{
in_progress: integer ,
completed: integer ,
failed: integer ,
cancelled: integer ,
total: integer ,
}
,
status: enum ,
expires_after:
{
anchor: enum ,
days: integer ,
}
,
expires_at: integer ,
last_active_at: integer ,
metadata: object ,
}
GetVectorStore (new)
Description :  Returns the vector store object matching the specified ID.
Reference :  Link ¶

⚼ Request

GET:  /vector_stores/{vectorStoreId}
{
vectorStoreId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
usage_bytes: integer ,
file_counts:
{
in_progress: integer ,
completed: integer ,
failed: integer ,
cancelled: integer ,
total: integer ,
}
,
status: enum ,
expires_after:
{
anchor: enum ,
days: integer ,
}
,
expires_at: integer ,
last_active_at: integer ,
metadata: object ,
}
ModifyVectorStore (new)
Description :  The ID of the vector store to modify.
Reference :  Link ¶

⚼ Request

POST:  /vector_stores/{vectorStoreId}
{
vectorStoreId: string ,
body:
{
name: string ,
expires_after: object ,
metadata: object ,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
usage_bytes: integer ,
file_counts:
{
in_progress: integer ,
completed: integer ,
failed: integer ,
cancelled: integer ,
total: integer ,
}
,
status: enum ,
expires_after:
{
anchor: enum ,
days: integer ,
}
,
expires_at: integer ,
last_active_at: integer ,
metadata: object ,
}
DeleteVectorStore (new)
Description :  Deletes the vector store object matching the specified ID.
Reference :  Link ¶

⚼ Request

DELETE:  /vector_stores/{vectorStoreId}
{
vectorStoreId: string ,
}

⚐ Response (200)

{
id: string ,
deleted: boolean ,
object: enum ,
}
CreateVectorStoreFileBatch (new)
Description :  Create a vector store file batch.
Reference :  Link ¶

⚼ Request

POST:  /vector_stores/{vectorStoreId}/file_batches
{
vectorStoreId: string ,
body:
{
file_ids:
[
string ,
]
,
chunking_strategy:
{
type: enum ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
file_counts:
{
in_progress: integer ,
completed: integer ,
failed: integer ,
cancelled: integer ,
total: integer ,
}
,
}
GetVectorStoreFileBatch (new)
Description :  Retrieve a vector store file batch.
Reference :  Link ¶

⚼ Request

GET:  /vector_stores/{vectorStoreId}/file_batches/{batchId}
{
vectorStoreId: string ,
batchId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
file_counts:
{
in_progress: integer ,
completed: integer ,
failed: integer ,
cancelled: integer ,
total: integer ,
}
,
}
CancelVectorStoreFileBatch (new)
Description :  Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.
Reference :  Link ¶

⚼ Request

POST:  /vector_stores/{vectorStoreId}/file_batches/{batchId}/cancel
{
vectorStoreId: string ,
batchId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
file_counts:
{
in_progress: integer ,
completed: integer ,
failed: integer ,
cancelled: integer ,
total: integer ,
}
,
}
ListVectorStoreFileBatchFiles (new)
Description :  Returns a list of vector store files in a batch.
Reference :  Link ¶

⚼ Request

GET:  /vector_stores/{vectorStoreId}/file_batches/{batchId}/files
{
vectorStoreId: string ,
batchId: string ,
filter: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
object: enum ,
data:
[
{
id: string ,
object: enum ,
usage_bytes: integer ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
last_error: object ,
chunking_strategy:
{
type: enum ,
}
,
}
,
]
,
first_id: string ,
last_id: string ,
has_more: boolean ,
}
ListVectorStoreFiles (new)
Description :  Returns a list of vector store files.
Reference :  Link ¶

⚼ Request

GET:  /vector_stores/{vectorStoreId}/files
{
vectorStoreId: string ,
filter: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
object: enum ,
data:
[
{
id: string ,
object: enum ,
usage_bytes: integer ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
last_error: object ,
chunking_strategy:
{
type: enum ,
}
,
}
,
]
,
first_id: string ,
last_id: string ,
has_more: boolean ,
}
CreateVectorStoreFile (new)
Description :  Create a vector store file by attaching a file to a vector store.
Reference :  Link ¶

⚼ Request

POST:  /vector_stores/{vectorStoreId}/files
{
vectorStoreId: string ,
body:
{
file_id: string ,
chunking_strategy:
{
type: enum ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
object: enum ,
usage_bytes: integer ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
last_error: object ,
chunking_strategy:
{
type: enum ,
}
,
}
GetVectorStoreFile (new)
Description :  Retrieves a vector store file.
Reference :  Link ¶

⚼ Request

GET:  /vector_stores/{vectorStoreId}/files/{fileId}
{
vectorStoreId: string ,
fileId: string ,
}

⚐ Response (200)

{
id: string ,
object: enum ,
usage_bytes: integer ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
last_error: object ,
chunking_strategy:
{
type: enum ,
}
,
}
DeleteVectorStoreFile (new)
Description :  Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the delete file endpoint.
Reference :  Link ¶

⚼ Request

DELETE:  /vector_stores/{vectorStoreId}/files/{fileId}
{
vectorStoreId: string ,
fileId: string ,
}

⚐ Response (200)

{
id: string ,
deleted: boolean ,
object: enum ,
}