Supabase Contact-Chapter Adapter
API Contract
REST
/api/v1/contact-chapter-records
7 endpoints
GET
/api/v1/contact-chapter-records/api/v1/contact-chapter-records
List raw contact-chapter records from Supabase
Public
Response Example
{
"data": [
{
"record_id": "rec-7741",
"contact_id": "contact-8821",
"chapter_id": "chapter-oslo",
"inserted_at": "2025-11-14T09:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 134
}
}
GET
/api/v1/contact-chapter-records/api/v1/contact-chapter-records/:id
Get a specific contact-chapter record
Public
Response Example
{
"record_id": "rec-7741",
"contact_id": "contact-8821",
"chapter_id": "chapter-oslo",
"inserted_at": "2025-11-14T09:00:00Z"
}
POST
/api/v1/contact-chapter-records/api/v1/contact-chapter-records
Insert a new contact-chapter record via Supabase adapter
Public
Request Example
{
"contact_id": "contact-8821",
"chapter_id": "chapter-bergen"
}
Response Example
{
"record_id": "rec-7801",
"contact_id": "contact-8821",
"chapter_id": "chapter-bergen",
"inserted_at": "2026-03-26T12:34:00Z",
"created_at": "2026-03-26T12:34:00Z"
}
PUT
/api/v1/contact-chapter-records/api/v1/contact-chapter-records/:id
Update a contact-chapter record metadata
Public
Request Example
{
"chapter_id": "chapter-bergen"
}
Response Example
{
"record_id": "rec-7801",
"contact_id": "contact-8821",
"chapter_id": "chapter-bergen",
"inserted_at": "2026-03-26T12:34:00Z",
"updated_at": "2026-03-26T13:00:00Z"
}
DELETE
/api/v1/contact-chapter-records/api/v1/contact-chapter-records/:id
Delete a contact-chapter record (remove from chapter)
Public
Response Example
{
"deleted": true,
"record_id": "rec-7801"
}
GET
/api/v1/contact-chapter-records/api/v1/contact-chapter-records/by-contact/:contactId
Select all chapter records for a given contact
Public
Response Example
{
"data": [
{
"record_id": "rec-7741",
"contact_id": "contact-8821",
"chapter_id": "chapter-oslo",
"inserted_at": "2025-11-14T09:00:00Z"
},
{
"record_id": "rec-7799",
"contact_id": "contact-8821",
"chapter_id": "chapter-stavanger",
"inserted_at": "2025-12-01T08:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 2
}
}
GET
/api/v1/contact-chapter-records/api/v1/contact-chapter-records/by-chapter/:chapterId
Select all contact records for a given chapter
Public
Response Example
{
"data": [
{
"record_id": "rec-7741",
"contact_id": "contact-8821",
"chapter_id": "chapter-oslo",
"inserted_at": "2025-11-14T09:00:00Z"
},
{
"record_id": "rec-7802",
"contact_id": "contact-9014",
"chapter_id": "chapter-oslo",
"inserted_at": "2026-01-10T10:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 134
}
}