Get Table

Retrieve details of a specific table including its fields

GET/tables/{table_id}
Requires Bearer authentication

Retrieve the details of a specific table, including all of its field definitions.

Path Parameters

table_idstringrequired

The unique identifier of the table.

GET/tables/{table_id}
curl -X GET "https://api.vastal.agency/v1/tables/tbl_abc123" \
-H "Authorization: Bearer YOUR_API_KEY"
200Success
{
"success": true,
"data": {
  "id": "tbl_abc123",
  "name": "Contacts",
  "slug": "contacts",
  "description": "Customer contact information",
  "fields": [
    {
      "id": "fld_001",
      "name": "Name",
      "slug": "name",
      "field_type": "text",
      "is_required": true
    },
    {
      "id": "fld_002",
      "name": "Email",
      "slug": "email",
      "field_type": "email",
      "is_required": true
    }
  ],
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-20T14:15:00Z"
}
}