Public API & tokens
Update link blocks on your space programmatically with the v1 API and personal tokens.
The cntct.space API lets you update link blocks on your space from your own scripts and pipelines — so the link always points at your newest video, drop, or post without you touching the editor. You mark a link as available to the API, generate a token, and PATCH the block whenever your automation runs.
This is the friendly on-ramp. For the full endpoint list, response shapes, error codes, and concurrency headers, see the API reference.
API access is available on Pro and above. On the Free and Basic plans the API is locked. If you downgrade below Pro, your tokens are revoked the next time they are used.
What you can do
- List your spaces and how many API-flagged blocks each has.
- List the link blocks on a space that are marked Available via API.
- Read a single API-flagged link block.
- Update an API-flagged link block — its
url,title,description,thumbnailUrl,icon,badge, orschedule.
The API only ever touches link blocks you have explicitly flagged. It can't create or delete blocks, change other block types, or flip the apiUpdatable flag itself — those stay in the editor.
Generate an API token
Tokens authenticate every request. They start with the prefix cnt_live_ and are shown in full only once at creation — store the full value somewhere safe.
- Go to API tokens under Account settings.
- Click Generate token and give it a name (so you can tell your scripts apart later).
- Copy the full
cnt_live_...token immediately — it won't be shown again. - Use it as a bearer header:
Authorization: Bearer cnt_live_....
You can have up to 5 active tokens at once. Revoke one to free up a slot. Revoking a token immediately stops any script using it.
The "Available via API" workflow
A link block is only reachable by the API once you turn on its Available via API toggle in the editor. That toggle also reveals the block's id, which you'll need in the request path.
- Add a Link block to your space in the block builder.
- Open the block and turn on Available via API.
- Copy the Block id shown beneath the toggle.
- Generate a token at API tokens if you don't have one.
PATCHthe block from your script with the newurl(and any other fields).
Leave the link's URL blank and the block stays hidden on your public page until your pipeline sets one. That makes a tidy empty slot that only appears when there's something to show.
A quick example
Update one link block, replacing your-slug, the block id, and the token with your own values:
curl -X PATCH \
https://www.cntct.space/api/v1/spaces/your-slug/blocks/<block-id> \
-H "Authorization: Bearer cnt_live_..." \
-H "Content-Type: application/json" \
-d '{"url":"https://your-new-link.example/","title":"Latest video"}'To avoid overwriting a change someone else made in the editor, pass the space_updated_at value you last read back as an If-Match header — a mismatch returns a 409 so you can re-read and retry. Details are in the full reference.
Rate limits
| Type | Limit | Per |
|---|---|---|
Reads (GET) | 120 / min | token |
Writes (PATCH) | 30 / min | token |
Going over returns a 429. There's no Retry-After header — wait about 60 seconds and try again.
Frequently asked
Which plan do I need for the API?
API access is available on Pro and Business (and the comp Friends & Family tier). It's locked on Free and Basic. Upgrade from the pricing page to unlock it.
How do I create a token?
Go to API tokens, click Generate token, name it, and copy the full cnt_live_... value right away — it's only shown once.
How many tokens can I have?
Up to 5 active tokens per account. If you hit the limit, revoke an unused one to generate another.
Why can't the API update my block?
The API only touches link blocks with Available via API turned on. Open the block in the editor, enable that toggle, and use the Block id it reveals. The API can't change other block types, and type and apiUpdatable can't be set through it.
What happens to my tokens if I downgrade?
If your plan drops below Pro, the next API request made with a token revokes it and returns a plan_required error. Re-upgrade and generate a fresh token to resume.
I lost my token — can I see it again?
No. The full token is shown only once at creation. Revoke the old one and generate a new token, then update your scripts.