Skip to main content
POST
/
assistants
/
{assistant_id}
/
versions
Get Assistant Versions
curl --request POST \
  --url https://api.example.com/assistants/{assistant_id}/versions
import requests

url = "https://api.example.com/assistants/{assistant_id}/versions"

response = requests.post(url)

print(response.text)
const options = {method: 'POST'};

fetch('https://api.example.com/assistants/{assistant_id}/versions', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.example.com/assistants/{assistant_id}/versions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/assistants/{assistant_id}/versions"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.example.com/assistants/{assistant_id}/versions")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.example.com/assistants/{assistant_id}/versions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
[
  {
    "assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "graph_id": "<string>",
    "config": {
      "tags": [
        "<string>"
      ],
      "recursion_limit": 123,
      "configurable": {}
    },
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "metadata": {},
    "context": {},
    "version": 123,
    "name": "<string>",
    "description": "<string>"
  }
]
{
  "detail": "<string>"
}

Path Parameters

assistant_id
string<uuid>
required

The ID of the assistant.

Response

Success

assistant_id
string<uuid>
required

The ID of the assistant.

graph_id
string
required

The ID of the graph.

config
Config · object
required

The assistant config.

created_at
string<date-time>
required

The time the assistant was created.

updated_at
string<date-time>
required

The last time the assistant was updated.

metadata
Metadata · object
required

The assistant metadata.

context
Context · object

Static context added to the assistant.

version
integer

The version of the assistant

name
string

The name of the assistant

description
string | null

The description of the assistant