Copilot
Successful Response
Response for an agent.
Agent Index State Enum
Agent Status Enum
Agent Type Enum
GET /copilot/v1/agent/ HTTP/1.1
Host: api.skysql.com/
Accept: */*
Successful Response
[
{
"context_id": null,
"created_on": "2026-01-01T00:00:00.000Z",
"datasource_id": null,
"description": null,
"id": "123e4567-e89b-12d3-a456-426614174000",
"index_status": "INSYNC",
"name": "text",
"status": "DEVELOPMENT",
"type": "SYSTEM"
}
]Request for creating a new agent.
Successful Response
Response for an agent.
Agent Index State Enum
Agent Status Enum
Agent Type Enum
Validation Error
POST /copilot/v1/agent/ HTTP/1.1
Host: api.skysql.com/
Content-Type: application/json
Accept: */*
Content-Length: 86
{
"context_id": "123e4567-e89b-12d3-a456-426614174000",
"description": null,
"name": "text"
}{
"context_id": null,
"created_on": "2026-01-01T00:00:00.000Z",
"datasource_id": null,
"description": null,
"id": "123e4567-e89b-12d3-a456-426614174000",
"index_status": "INSYNC",
"name": "text",
"status": "DEVELOPMENT",
"type": "SYSTEM"
}Request for importing an agent.
Successful Response
Response for an agent.
Agent Index State Enum
Agent Status Enum
Agent Type Enum
Validation Error
POST /copilot/v1/agent/import HTTP/1.1
Host: api.skysql.com/
Content-Type: application/json
Accept: */*
Content-Length: 267
{
"data": {
"context": {
"description": null,
"name": "text",
"tables": [
{
"columns": [
{
"data_role": null,
"description": null,
"name": "text",
"type": "text"
}
],
"description": null,
"name": "text"
}
]
},
"description": null,
"name": "text"
},
"datasource_id": "123e4567-e89b-12d3-a456-426614174000"
}{
"context_id": null,
"created_on": "2026-01-01T00:00:00.000Z",
"datasource_id": null,
"description": null,
"id": "123e4567-e89b-12d3-a456-426614174000",
"index_status": "INSYNC",
"name": "text",
"status": "DEVELOPMENT",
"type": "SYSTEM"
}Successful Response
Response for an agent.
Agent Index State Enum
Agent Status Enum
Agent Type Enum
Validation Error
GET /copilot/v1/agent/{agent_id} HTTP/1.1
Host: api.skysql.com/
Accept: */*
{
"context_id": null,
"created_on": "2026-01-01T00:00:00.000Z",
"datasource_id": null,
"description": null,
"id": "123e4567-e89b-12d3-a456-426614174000",
"index_status": "INSYNC",
"name": "text",
"status": "DEVELOPMENT",
"type": "SYSTEM"
}Request for updating a agent.
Successful Response
Response for an agent.
Agent Index State Enum
Agent Status Enum
Agent Type Enum
Validation Error
PATCH /copilot/v1/agent/{agent_id} HTTP/1.1
Host: api.skysql.com/
Content-Type: application/json
Accept: */*
Content-Length: 64
{
"context_id": null,
"description": null,
"name": null,
"status": null
}{
"context_id": null,
"created_on": "2026-01-01T00:00:00.000Z",
"datasource_id": null,
"description": null,
"id": "123e4567-e89b-12d3-a456-426614174000",
"index_status": "INSYNC",
"name": "text",
"status": "DEVELOPMENT",
"type": "SYSTEM"
}Successful Response
Response for exporting an agent.
Validation Error
GET /copilot/v1/agent/{agent_id}/export HTTP/1.1
Host: api.skysql.com/
Accept: */*
{
"context": {
"description": null,
"name": "text",
"tables": [
{
"columns": [
{
"data_role": null,
"description": null,
"name": "text",
"type": "text"
}
],
"description": null,
"name": "text"
}
]
},
"description": null,
"name": "text"
}Successful Response
API Response for a context.
Validation Error
POST /copilot/v1/agent/{agent_id}/generate HTTP/1.1
Host: api.skysql.com/
Accept: */*
{
"created_on": "2026-01-01T00:00:00.000Z",
"datasource_id": "123e4567-e89b-12d3-a456-426614174000",
"description": null,
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"tables": [
{
"available_columns": [
{
"data_role": null,
"description": null,
"id": null,
"name": "text",
"type": "text"
}
],
"columns": [
{
"data_role": null,
"description": null,
"id": null,
"name": "text",
"type": "text"
}
],
"context_id": "123e4567-e89b-12d3-a456-426614174000",
"created_on": "2026-01-01T00:00:00.000Z",
"description": null,
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}
]
}Request for the app chat API.
{}Successful Response
Response for the app chat API.
Validation Error
POST /copilot/v1/chat/ HTTP/1.1
Host: api.skysql.com/
Content-Type: application/json
Accept: */*
Content-Length: 79
{
"agent_id": "123e4567-e89b-12d3-a456-426614174000",
"config": {},
"prompt": "text"
}{
"prompt": "text",
"response": {
"col_keys": [
"text"
],
"content": null,
"error_text": "text",
"sql_text": "text"
}
}Successful Response
Response for a data source connection list
Data Source Type Enum
GET /copilot/v1/data-source/ HTTP/1.1
Host: api.skysql.com/
Accept: */*
Successful Response
[
{
"host": "text",
"created_on": "2026-01-01T00:00:00.000Z",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"port": 1,
"type": "SYSTEM",
"username": "text"
}
]Request for creating a new data source connection
Successful Response
Response for a data source connection
Data Source Type Enum
Validation Error
POST /copilot/v1/data-source/ HTTP/1.1
Host: api.skysql.com/
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"host": "text",
"name": "text",
"password": "text",
"port": 1,
"username": "text"
}{
"host": "text",
"created_on": "2026-01-01T00:00:00.000Z",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"port": 1,
"schemas": [
{
"name": "text",
"tables": [
"text"
]
}
],
"type": "SYSTEM",
"username": "text"
}Successful Response
Response for a data source connection
Data Source Type Enum
Validation Error
GET /copilot/v1/data-source/{datasource_id} HTTP/1.1
Host: api.skysql.com/
Accept: */*
{
"host": "text",
"created_on": "2026-01-01T00:00:00.000Z",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"port": 1,
"schemas": [
{
"name": "text",
"tables": [
"text"
]
}
],
"type": "SYSTEM",
"username": "text"
}Successful Response
Validation Error
DELETE /copilot/v1/data-source/{datasource_id} HTTP/1.1
Host: api.skysql.com/
Accept: */*
No content
Request for updating a data source connection
Successful Response
Response for a data source connection
Data Source Type Enum
Validation Error
PATCH /copilot/v1/data-source/{datasource_id} HTTP/1.1
Host: api.skysql.com/
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"name": null,
"password": null,
"username": null
}{
"host": "text",
"created_on": "2026-01-01T00:00:00.000Z",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"port": 1,
"schemas": [
{
"name": "text",
"tables": [
"text"
]
}
],
"type": "SYSTEM",
"username": "text"
}Successful Response
Validation Error
GET /copilot/v1/quota/ HTTP/1.1
Host: api.skysql.com/
Accept: */*
[
{
"description": "text",
"name": "text",
"unit": "text",
"usage": 1,
"value": 1
}
]Successful Response
Session list response model
Not found
GET /copilot/v1/session/ HTTP/1.1
Host: api.skysql.com/
Accept: */*
[
{
"agent_config": {},
"agent_id": null,
"created_on": "2026-01-01T00:00:00.000Z",
"id": "123e4567-e89b-12d3-a456-426614174000",
"summary": null
}
]Request for creating a new session
Successful Response
Public session model
Not found
Validation Error
POST /copilot/v1/session/ HTTP/1.1
Host: api.skysql.com/
Content-Type: application/json
Accept: */*
Content-Length: 107
{
"agent_id": "123e4567-e89b-12d3-a456-426614174000",
"chat": null,
"config": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}{
"agent_config": {},
"agent_id": null,
"created_on": "2026-01-01T00:00:00.000Z",
"entries": [
{
"chat": {
"prompt": "text",
"response": {
"col_keys": [
"text"
],
"content": null,
"error_text": "text",
"sql_text": "text"
}
},
"confidence": null,
"created_on": "2026-01-01T00:00:00.000Z",
"feedback": null,
"id": "123e4567-e89b-12d3-a456-426614174000"
}
],
"id": "123e4567-e89b-12d3-a456-426614174000",
"summary": null
}Successful Response
Public session model
Not found
Validation Error
GET /copilot/v1/session/{session_id} HTTP/1.1
Host: api.skysql.com/
Accept: */*
{
"agent_config": {},
"agent_id": null,
"created_on": "2026-01-01T00:00:00.000Z",
"entries": [
{
"chat": {
"prompt": "text",
"response": {
"col_keys": [
"text"
],
"content": null,
"error_text": "text",
"sql_text": "text"
}
},
"confidence": null,
"created_on": "2026-01-01T00:00:00.000Z",
"feedback": null,
"id": "123e4567-e89b-12d3-a456-426614174000"
}
],
"id": "123e4567-e89b-12d3-a456-426614174000",
"summary": null
}Request for chatting with a session
Successful Response
Public session model
Not found
Validation Error
PUT /copilot/v1/session/{session_id} HTTP/1.1
Host: api.skysql.com/
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"prompt": "text"
}{
"agent_config": {},
"agent_id": null,
"created_on": "2026-01-01T00:00:00.000Z",
"entries": [
{
"chat": {
"prompt": "text",
"response": {
"col_keys": [
"text"
],
"content": null,
"error_text": "text",
"sql_text": "text"
}
},
"confidence": null,
"created_on": "2026-01-01T00:00:00.000Z",
"feedback": null,
"id": "123e4567-e89b-12d3-a456-426614174000"
}
],
"id": "123e4567-e89b-12d3-a456-426614174000",
"summary": null
}Successful Response
Not found
Validation Error
DELETE /copilot/v1/session/{session_id} HTTP/1.1
Host: api.skysql.com/
Accept: */*
No content
Request for chatting with a session
Successful Response
Public session entry model
Not found
Validation Error
POST /copilot/v1/session/{session_id}/entry HTTP/1.1
Host: api.skysql.com/
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"prompt": "text"
}{
"chat": {
"prompt": "text",
"response": {
"col_keys": [
"text"
],
"content": null,
"error_text": "text",
"sql_text": "text"
}
},
"confidence": null,
"created_on": "2026-01-01T00:00:00.000Z",
"feedback": null,
"id": "123e4567-e89b-12d3-a456-426614174000"
}Successful Response
Not found
Validation Error
DELETE /copilot/v1/session/{session_id}/entry HTTP/1.1
Host: api.skysql.com/
Accept: */*
No content
Request for patching a session entry
Successful Response
Public session entry model
Not found
Validation Error
PATCH /copilot/v1/session/{session_id}/entry/{entry_id} HTTP/1.1
Host: api.skysql.com/
Content-Type: application/json
Accept: */*
Content-Length: 29
{
"chat": null,
"feedback": null
}{
"chat": {
"prompt": "text",
"response": {
"col_keys": [
"text"
],
"content": null,
"error_text": "text",
"sql_text": "text"
}
},
"confidence": null,
"created_on": "2026-01-01T00:00:00.000Z",
"feedback": null,
"id": "123e4567-e89b-12d3-a456-426614174000"
}Last updated
Was this helpful?

