Inspect a Databoard, patch structured data or Sass, compile utility CSS, deploy the generated site, and verify the artifact.
The safe loop is concrete: GET the board, POST a narrow patch, POST compile when styling changed, POST deploy, then POST verify.
API keys identify the user, scope access, and keep board operations inside that user context.
Send the token on every request. Add Content-Type for JSON mutation calls.
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
The key resolves to a user_hash. Databoards, groups, websites, forms, and notes are read through that owner context.
Individual API calls available to agents and scripts. Use the workflow section below when you want the recommended order of operations.
Verify the API key, scopes, and user profile before touching a board.
curl -X GET https://your-antsand-instance/api/v1/me \
-H "Authorization: Bearer YOUR_API_KEY"
List boards visible to the key and find the board id you intend to operate on.
curl -X GET https://your-antsand-instance/api/v1/databoards \
-H "Authorization: Bearer YOUR_API_KEY"
Fetch the full board contract: pages, sections, menu data, mappings, Sass, HMVC, and website settings.
curl -X GET https://your-antsand-instance/api/v1/databoards/abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
Apply patch_delta operations for menu data, section mapping, Sass files, routes, ACL, and global references.
curl -X POST https://your-antsand-instance/api/v1/databoards/abc123/patch \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @patch_delta.json
Compile board-local utility CSS after adding or changing css_class values.
curl -X POST https://your-antsand-instance/api/v1/databoards/abc123/utilities/compile \
-H "Authorization: Bearer YOUR_API_KEY"
Generate the HMVC site artifact, routes, views, Sass, JS assets, API data, and deployment files.
curl -X POST https://your-antsand-instance/api/v1/databoards/abc123/deploy \
-H "Authorization: Bearer YOUR_API_KEY"
Check generated routes, ACL resources, controller actions, metadata, internal forms, and interactive assets.
curl -X POST https://your-antsand-instance/api/v1/databoards/abc123/verify-deployment \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"strict":true}'
This table uses the existing Databoard static datatable renderer. Classes assigned in Databoard are appended to fixed renderer classes.
| Field | Element | Fixed Class | Purpose |
|---|---|---|---|
| section.container | <section> | .section | Theme and outer spacing classes. |
| data.container | <div> | .data-container | Grid/flex layout classes. |
| data.sub_container | <div> per item | .data-sub-container | Card wrapper classes. |
| data.img_container | <div> wrapping image | .data-img-container | Aspect ratio and media layout. |
| data.h3 | <h3> | .data-h3 | Title typography. |
| data.p | <p> | .data-p | Body copy typography. |
| data.cta | <a> | .data-cta | Button and link styling. |
Use this sequence when an agent or script changes a generated ANTSAND site. Each step is an actual API call.
Read pages, sections, menu data, data_mapping, Sass, HMVC routes, and website settings before changing anything.
curl -X GET https://your-antsand-instance/api/v1/databoards/BOARD_ID \
-H "Authorization: Bearer YOUR_API_KEY"
Patch menu data, section classes, Sass files, routes, ACL, or global references without rewriting the full board.
curl -X POST https://your-antsand-instance/api/v1/databoards/BOARD_ID/patch \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @patch_delta.json
Run this after adding or changing css_class values so board-local utility CSS is regenerated.
curl -X POST https://your-antsand-instance/api/v1/databoards/BOARD_ID/utilities/compile \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"deploy":false}'
Generate HMVC routes, views, Sass, JS assets, API data, metadata, and deployment files.
curl -X POST https://your-antsand-instance/api/v1/databoards/BOARD_ID/deploy \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"website_id":"WEBSITE_ID","alias":"ALIAS","group_id":"GROUP_ID"}'
Check generated routes, ACL resources, controller actions, metadata, internal forms, and interactive assets.
curl -X POST https://your-antsand-instance/api/v1/databoards/BOARD_ID/verify-deployment \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"website_id":"WEBSITE_ID","alias":"ALIAS","group_id":"GROUP_ID","strict":true}'