Skip to main content

Create session

POST 

/v1/session

Create a new session

Request

Body

    anyOf
    metadata object

    Optional dictionary of additional metadata to store with the session

    anyOf
    object

Responses

Successful Response

Schema
    command_line object
    anyOf
    string
    created_atdate-timerequired
    display_name object
    anyOf
    string
    id object
    anyOf
    integer
    machine_info object
    anyOf
    string
    program_version object
    anyOf
    string
    start_timedate-timerequired
    updated_atdate-timerequired
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://docs.ra-aid.ai/v1/session");
request.Headers.Add("Accept", "application/json");
var content = new StringContent(string.Empty);
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Body
{
  "metadata": {}
}