ThoughtAPI

Docs c3

Events and invites (c3)

Availability, events and invites in the ChingChing.Club API.

Base URL
https://c3.thought.bz/
Version
v1
Auth
Bearer session token in the Authorization header, except where an endpoint says None
Status
Beta

This page is part of the c3 (ChingChing.Club) API reference.

Availability, booked events and invites.

GET /v1/me/availability#

List the dates the member marked as available.

Auth Member session token

Request

bash
curl "https://c3.thought.bz/v1/me/availability" \
  -H "Authorization: Bearer <token>"

Response

json
{ "dates": [ { "date": "2026-12-05", "available": true } ] }

PUT /v1/me/availability/{date}#

Mark one date as available or not.

Auth Member session token

NameInTypeDescription
date requiredpathstringYYYY-MM-DD.
available requiredbodybooleanThe new state.

Request

bash
curl -X PUT "https://c3.thought.bz/v1/me/availability/<date>" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"available": true}'

Response

json
{ "date": "2026-12-05", "available": true }
StatusMeaning
400The date is not valid. Code invalid_body.
404Not found. Code not_found.

PUT /v1/me/availability-week#

Set availability for 7 days in one call.

Auth Member session token

NameInTypeDescription
start requiredbodystringThe first date, YYYY-MM-DD.
days requiredbodyarray of booleanSeven values, one for each day from start.

Request

bash
curl -X PUT "https://c3.thought.bz/v1/me/availability-week" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"start": "2026-12-05", "days": [true, true, false, false, true, true, true]}'

Response

json
{ "dates": [ { "date": "2026-12-05", "available": true } ] }

GET /v1/availability#

See which members are available on a date.

Auth Member session token

NameInTypeDescription
date requiredquerystringYYYY-MM-DD.

Request

bash
curl "https://c3.thought.bz/v1/availability" \
  -H "Authorization: Bearer <token>"

Response

json
{
  "date": "2026-12-05",
  "members": [
    { "memberId": "u12345abcde", "handle": "aquaone", "suburb": "Sandton", "venueId": "vn12345abcde", "venueName": "Mira Room", "costCents": 50000 }
  ]
}

Only dates today and up to 60 days ahead can be read.

GET /v1/me/events-settings#

Read the member's default event settings.

Auth Member session token

Request

bash
curl "https://c3.thought.bz/v1/me/events-settings" \
  -H "Authorization: Bearer <token>"

Response

json
{ "venueId": "vn12345abcde", "venueName": "Mira Room", "suburb": "Sandton", "costCents": 50000 }

PUT /v1/me/events-settings#

Change the member's default event settings.

Auth Member session token

NameInTypeDescription
venueIdbodystringThe usual venue.
suburbbodystringThe suburb to show on the map.
costCentsbodyintegerThe usual cost, in cents.

Request

bash
curl -X PUT "https://c3.thought.bz/v1/me/events-settings" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"venueId": "vn12345abcde", "suburb": "Sandton", "costCents": 50000}'

Response

json
{ "venueId": "vn12345abcde", "venueName": "Mira Room", "suburb": "Sandton", "costCents": 50000 }

POST /v1/events#

Invite a member to an event on a date.

Auth Member session token

NameInTypeDescription
memberId requiredbodystringThe member being invited.
date requiredbodystringYYYY-MM-DD.
venueIdbodystringThe venue. The member's default is used when left out.
costCentsbodyintegerThe cost in cents.

Request

bash
curl -X POST "https://c3.thought.bz/v1/events" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"memberId": "u54321edcba", "date": "2026-12-05", "venueId": "vn12345abcde", "costCents": 50000}'

Response

json
{
  "eventId": "ev12345abcde",
  "inviteId": "iv12345abcde",
  "status": "invited",
  "date": "2026-12-05",
  "hostId": "u12345abcde",
  "guestId": "u54321edcba",
  "venueId": "vn12345abcde",
  "venueName": "Mira Room",
  "suburb": "Sandton",
  "costCents": 50000,
  "charge": { "status": "stub", "provider": "stub", "charged": false, "costCents": 50000 }
}
StatusMeaning
403Not allowed to invite this member. Code forbidden.
404No such member or venue. Code not_found.
409The caller has no handle, the guest is not available that day, or one of them blocked the other. Codes no_handle, not_available and blocked_member.

No card is charged. The charge object shows that nothing was taken.

GET /v1/events#

List the member's events, newest first.

Auth Member session token

Request

bash
curl "https://c3.thought.bz/v1/events" \
  -H "Authorization: Bearer <token>"

Response

json
{ "events": [ {
    "eventId": "ev12345abcde",
    "inviteId": "iv12345abcde",
    "status": "invited",
    "date": "2026-12-05",
    "hostId": "u12345abcde",
    "guestId": "u54321edcba",
    "venueId": "vn12345abcde",
    "venueName": "Mira Room",
    "suburb": "Sandton",
    "costCents": 50000,
    "charge": { "status": "stub", "provider": "stub", "charged": false, "costCents": 50000 },
    "hostCheckedIn": false,
    "guestCheckedIn": false,
    "updates": []
  } ] }

GET /v1/me/events#

List the member's events. Same result as GET /v1/events.

Auth Member session token

Request

bash
curl "https://c3.thought.bz/v1/me/events" \
  -H "Authorization: Bearer <token>"

Response

json
{ "events": [ {
    "eventId": "ev12345abcde",
    "inviteId": "iv12345abcde",
    "status": "invited",
    "date": "2026-12-05",
    "hostId": "u12345abcde",
    "guestId": "u54321edcba",
    "venueId": "vn12345abcde",
    "venueName": "Mira Room",
    "suburb": "Sandton",
    "costCents": 50000,
    "charge": { "status": "stub", "provider": "stub", "charged": false, "costCents": 50000 },
    "hostCheckedIn": false,
    "guestCheckedIn": false,
    "updates": []
  } ] }

GET /v1/events/{id}#

Read one event.

Auth Member session token

NameInTypeDescription
id requiredpathstringThe event id.

Request

bash
curl "https://c3.thought.bz/v1/events/<id>" \
  -H "Authorization: Bearer <token>"

Response

json
{
  "eventId": "ev12345abcde",
  "inviteId": "iv12345abcde",
  "status": "invited",
  "date": "2026-12-05",
  "hostId": "u12345abcde",
  "guestId": "u54321edcba",
  "venueId": "vn12345abcde",
  "venueName": "Mira Room",
  "suburb": "Sandton",
  "costCents": 50000,
  "charge": { "status": "stub", "provider": "stub", "charged": false, "costCents": 50000 },
  "hostCheckedIn": false,
  "guestCheckedIn": false,
  "updates": []
}
StatusMeaning
403The member is not part of this event. Code forbidden.
404No such event. Code not_found.

POST /v1/events/{id}/cancel#

Cancel an event.

Auth Member session token

NameInTypeDescription
id requiredpathstringThe event id.

Request

bash
curl -X POST "https://c3.thought.bz/v1/events/<id>/cancel" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>"

Response

json
{ "eventId": "ev12345abcde", "status": "cancelled" }
StatusMeaning
403The event is not this member's. Code forbidden.
409The event can no longer be cancelled. Code idempotency_conflict.

Only an invited or confirmed event can be cancelled.

POST /v1/events/{id}/updates#

Add a short note to an event.

Auth Member session token

NameInTypeDescription
id requiredpathstringThe event id.
note requiredbodystringThe note.

Request

bash
curl -X POST "https://c3.thought.bz/v1/events/<id>/updates" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"note": "Running 10 minutes late."}'

Response

json
{
  "eventId": "ev12345abcde",
  "updates": [ { "at": "2026-12-05T18:00:00Z", "memberId": "u12345abcde", "note": "Running 10 minutes late." } ]
}

POST /v1/events/{id}/reports#

Report a problem with an event.

Auth Member session token

NameInTypeDescription
id requiredpathstringThe event id.
reason requiredbodystringno_show, unsafe or other.
notebodystringMore detail.

Request

bash
curl -X POST "https://c3.thought.bz/v1/events/<id>/reports" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"reason": "no_show", "note": "Did not arrive."}'

Response

json
{ "reportId": "rp12345abcde", "eventId": "ev12345abcde", "status": "open" }
StatusMeaning
400The reason is not one of the three allowed. Code invalid_body.

POST /v1/events/{id}/check-in#

Check in to an event.

Auth Member session token

NameInTypeDescription
id requiredpathstringThe event id.

Request

bash
curl -X POST "https://c3.thought.bz/v1/events/<id>/check-in" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>"

Response

json
{ "eventId": "ev12345abcde", "status": "checked_in", "youCheckedIn": true, "bothCheckedIn": false, "friends": false }

POST /v1/events/{id}/pings#

Send a ping to the other person at an event.

Auth Member session token

NameInTypeDescription
id requiredpathstringThe event id.
notebodystringAn optional note.

Request

bash
curl -X POST "https://c3.thought.bz/v1/events/<id>/pings" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"note": "I am at the bar."}'

Response

json
{ "eventId": "ev12345abcde", "pingCount": 1, "at": "2026-12-05T18:30:00Z", "by": "u12345abcde" }

GET /v1/me/invites#

List the invites sent to the member.

Auth Member session token

Request

bash
curl "https://c3.thought.bz/v1/me/invites" \
  -H "Authorization: Bearer <token>"

Response

json
{
  "invites": [
    { "inviteId": "iv12345abcde", "eventId": "ev12345abcde", "fromId": "u12345abcde", "status": "pending", "date": "2026-12-05", "venueId": "vn12345abcde", "venueName": "Mira Room", "suburb": "Sandton", "costCents": 50000 }
  ]
}

POST /v1/invites/{id}/accept#

Accept an invite.

Auth Member session token

NameInTypeDescription
id requiredpathstringThe invite id.

Request

bash
curl -X POST "https://c3.thought.bz/v1/invites/<id>/accept" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>"

Response

json
{ "inviteId": "iv12345abcde", "eventId": "ev12345abcde", "status": "accepted" }
StatusMeaning
403The invite is not for this member. Code forbidden.
404No such invite. Code not_found.
409The invite was already answered. Code idempotency_conflict.

POST /v1/invites/{id}/decline#

Decline an invite.

Auth Member session token

NameInTypeDescription
id requiredpathstringThe invite id.

Request

bash
curl -X POST "https://c3.thought.bz/v1/invites/<id>/decline" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>"

Response

json
{ "inviteId": "iv12345abcde", "eventId": "ev12345abcde", "status": "declined" }
StatusMeaning
403The invite is not for this member. Code forbidden.
404No such invite. Code not_found.

Updated 2026-12-02