Create Row
Add a new row to a table
POST
/tables/{table_id}/rowsRequires
Bearer authenticationAdd a new row of data to the specified table.
Path Parameters
table_idstringrequiredThe unique identifier of the table.
Body Parameters
dataobjectrequiredObject containing field values keyed by field slug.
POST
/tables/{table_id}/rowscurl -X POST "https://api.vastal.agency/v1/tables/tbl_abc123/rows" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "data": { "name": "Jane Smith", "email": "jane@example.com", "company": "Tech Corp" } }'
const response = await fetch( 'https://api.vastal.agency/v1/tables/tbl_abc123/rows', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' }, body: JSON.stringify({ data: { name: 'Jane Smith', email: 'jane@example.com', company: 'Tech Corp' } }) } );
201Created
{ "success": true, "data": { "id": "row_002", "data": { "name": "Jane Smith", "email": "jane@example.com", "company": "Tech Corp" }, "created_at": "2024-01-20T15:45:00Z" } }