Skip to main content
GET
https://api.crewship.dev
/
v1
/
tables
curl "https://api.crewship.dev/v1/tables?limit=20&offset=0" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "tables": [
    {
      "id": "tbl_abc123xyz789",
      "name": "leads",
      "description": "Sales pipeline leads",
      "columns": [
        { "name": "company", "type": "text", "required": true },
        { "name": "score", "type": "number", "required": false }
      ],
      "row_count": 42,
      "created_at": "2024-01-15T10:35:00Z",
      "updated_at": "2024-01-20T08:12:00Z"
    }
  ]
}

Query Parameters

limit
number
default:"50"
Number of tables to return (max 1000)
offset
number
default:"0"
Number of tables to skip

Response

tables
array
Array of tables in the organization
tables[].id
string
Table ID (e.g., tbl_abc123xyz789)
tables[].name
string
Table name
tables[].description
string
Optional table description
tables[].columns
array
Column definitions for the table
tables[].row_count
number
Number of rows in the table
tables[].created_at
string
ISO 8601 timestamp
tables[].updated_at
string
ISO 8601 timestamp
curl "https://api.crewship.dev/v1/tables?limit=20&offset=0" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "tables": [
    {
      "id": "tbl_abc123xyz789",
      "name": "leads",
      "description": "Sales pipeline leads",
      "columns": [
        { "name": "company", "type": "text", "required": true },
        { "name": "score", "type": "number", "required": false }
      ],
      "row_count": 42,
      "created_at": "2024-01-15T10:35:00Z",
      "updated_at": "2024-01-20T08:12:00Z"
    }
  ]
}