Workspace Tables
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
GET /v1/{workspace_id}/tables HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful Response
{
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"table_name": "text",
"physical_name": "text",
"created_at": "2026-01-01T00:00:00.000Z"
}
]
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
^[a-z][a-z0-9_]{0,62}$Successful Response
Validation Error
POST /v1/{workspace_id}/tables HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 199
{
"table_name": "text",
"columns": [
{
"name": "text",
"type": "text",
"nullable": true,
"default": {
"kind": "literal",
"value": "text"
}
}
],
"primary_key": [
"text"
],
"unique": [
[
"text"
]
],
"indexes": [
{
"columns": [
"text"
]
}
]
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"table_name": "text",
"physical_name": "text"
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
Validation Error
GET /v1/{workspace_id}/tables/{table_id} HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"table_name": "text",
"physical_name": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"columns": [
{
"name": "text",
"data_type": "text",
"is_nullable": true,
"default": "text"
}
],
"indexes": [
{
"name": "text",
"definition": "text"
}
],
"constraints": [
{
"name": "text",
"definition": "text"
}
]
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
Validation Error
DELETE /v1/{workspace_id}/tables/{table_id} HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
Validation Error
PATCH /v1/{workspace_id}/tables/{table_id} HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 126
{
"actions": [
{
"op": "text",
"column": {
"name": "text",
"type": "text",
"nullable": true,
"default": {
"kind": "literal",
"value": "text"
}
}
}
]
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"table_name": "text",
"physical_name": "text"
}API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
One SQL statement: SELECT / WITH ... SELECT / INSERT / UPDATE /
DELETE. Multi-statement, DDL, and session-state commands (SET ROLE,
RESET, SET SESSION AUTHORIZATION) reject with 422 at the Pydantic
boundary. pg_* function calls reject with 400 at execute time
(no grant).
Successful Response
Validation Error
POST /v1/{workspace_id}/query HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 14
{
"sql": "text"
}{
"columns": [
"text"
],
"rows": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"row_count": 1
}Last updated
Was this helpful?

