Repository navigation
REST API
Proclaim includes a REST API built on Joomla's Web Services framework. It serves content in JSON:API format at /api/index.php/v1/proclaim/.
The API has three modes, configured in Proclaim > Administration > REST API Settings:
| Mode | Description |
|---|---|
| Disabled | No routes registered. API returns 404. |
| Public | Read endpoints open, write endpoints still require API key. |
| API Key Required (default) | All operations require a Joomla API token via Authorization: Bearer {token} header. |
Note: Write operations (POST, PATCH, DELETE) always require an API key, even when reads are set to Public.
Three steps, and all three are required — missing any one gives a 401 with no
explanation of which:
1. Allow the user's group to hold a token
Go to System > Plugins > User - Joomla API Token and add the group to Allowed User Groups. This defaults to Super Users only.
2. Grant that group permission to log in to the API
Go to System > Global Configuration > Permissions, select the group, and set
API Access (core.login.api) to Allowed. This also defaults to Super
Users only, and it is a separate setting from step 1 — adding the group to
the plugin is not enough on its own.
3. Generate the token
Go to Users > Manage > [your user] > API Token tab and click Generate.
curl -H "Authorization: Bearer YOUR_TOKEN" \
https://example.com/api/index.php/v1/proclaim/sermonsIf a valid token still returns 401, it is almost always step 2. Nothing in the interface indicates that API Access is the setting refusing the request.
Some servers strip the
Authorizationheader before PHP sees it (common with Apache/CGI, including MAMP). Joomla also acceptsX-Joomla-Token:curl -H "X-Joomla-Token: YOUR_TOKEN" ...
Because both gates default to Super Users, the simplest setup gives an integration full administrative access. To scope one properly:
- Create a dedicated user in its own group
- Complete steps 1 and 2 above for that group
- In Proclaim > Options > Permissions, grant only what the integration needs — e.g. Create and Edit but not Delete
Without step 3 the token can do anything a Super User can.
Two protections apply regardless of token or permissions:
- View levels are enforced on reads. Every list is filtered to the access levels the caller is entitled to, exactly as on the site. A public read never returns content a visitor could not otherwise see.
-
Sensitive columns are withheld. Server credentials (
params— API keys, client secrets, access tokens) and commenter email addresses are never rendered, even to a Super User token.
Twelve resources. GET requests return published and archived items only (unpublished and trashed are excluded), filtered to the caller's view levels.
Not every resource accepts writes. Four are read-only, and not merely unimplemented — each has a specific reason a write over HTTP would be unsafe:
| Resource | Writes | Why read-only |
|---|---|---|
sermons |
✅ | |
teachers |
✅ | |
series |
✅ | |
podcasts |
✅ | |
media |
✅ | |
topics |
✅ | |
locations |
✅ | |
messagetypes |
✅ | |
servers |
❌ | Holds media-server credentials; a write could overwrite or expose them |
templates |
❌ | Site markup — a write changes what every visitor sees |
comments |
❌ | Would bypass the front-end moderation gate |
playlists |
❌ |
sync/writeback settings trigger real changes on a linked YouTube account |
A write to a read-only resource returns 404 — the route does not exist.
| Method | URL | Description |
|---|---|---|
| GET | /api/index.php/v1/proclaim/sermons |
List all sermons |
| GET | /api/index.php/v1/proclaim/sermons/{id} |
Get a single sermon |
| POST | /api/index.php/v1/proclaim/sermons |
Create a sermon |
| PATCH | /api/index.php/v1/proclaim/sermons/{id} |
Update a sermon |
| DELETE | /api/index.php/v1/proclaim/sermons/{id} |
Delete a sermon |
List fields: id, studytitle, alias, studydate, studyintro, series_id, access, published, hits
Detail fields: adds studytext, params
| Method | URL | Description |
|---|---|---|
| GET | /api/index.php/v1/proclaim/teachers |
List all teachers |
| GET | /api/index.php/v1/proclaim/teachers/{id} |
Get a single teacher |
| POST | /api/index.php/v1/proclaim/teachers |
Create a teacher |
| PATCH | /api/index.php/v1/proclaim/teachers/{id} |
Update a teacher |
| DELETE | /api/index.php/v1/proclaim/teachers/{id} |
Delete a teacher |
List fields: id, teachername, alias, title, image, short, access, published
Detail fields: adds description, website, email, phone, params
| Method | URL | Description |
|---|---|---|
| GET | /api/index.php/v1/proclaim/series |
List all series |
| GET | /api/index.php/v1/proclaim/series/{id} |
Get a single series |
| POST | /api/index.php/v1/proclaim/series |
Create a series |
| PATCH | /api/index.php/v1/proclaim/series/{id} |
Update a series |
| DELETE | /api/index.php/v1/proclaim/series/{id} |
Delete a series |
List fields: id, series_text, alias, description, series_thumbnail, teacher_id, access, published
Detail fields: adds params
| Method | URL | Description |
|---|---|---|
| GET | /api/index.php/v1/proclaim/podcasts |
List all podcasts |
| GET | /api/index.php/v1/proclaim/podcasts/{id} |
Get a single podcast |
| POST | /api/index.php/v1/proclaim/podcasts |
Create a podcast |
| PATCH | /api/index.php/v1/proclaim/podcasts/{id} |
Update a podcast |
| DELETE | /api/index.php/v1/proclaim/podcasts/{id} |
Delete a podcast |
List fields: id, title, alias, description, podcast_image, language, access, published
Detail fields: adds params
| Method | URL | Description |
|---|---|---|
| GET | /api/index.php/v1/proclaim/media |
List all media files |
| GET | /api/index.php/v1/proclaim/media/{id} |
Get a single media file |
| POST | /api/index.php/v1/proclaim/media |
Create a media file |
| PATCH | /api/index.php/v1/proclaim/media/{id} |
Update a media file |
| DELETE | /api/index.php/v1/proclaim/media/{id} |
Delete a media file |
List fields: id, study_id, server_id, server_name, studytitle, createdate, plays, downloads, access, published
Detail fields: adds params, language
| Method | URL | Description |
|---|---|---|
| GET | /api/index.php/v1/proclaim/topics |
List all topics |
| GET | /api/index.php/v1/proclaim/topics/{id} |
Get a single topic |
| POST | /api/index.php/v1/proclaim/topics |
Create a topic |
| PATCH | /api/index.php/v1/proclaim/topics/{id} |
Update a topic |
| DELETE | /api/index.php/v1/proclaim/topics/{id} |
Delete a topic |
List fields: id, topic_text, published
Detail fields: adds access, language, params
| Method | URL | Description |
|---|---|---|
| GET | /api/index.php/v1/proclaim/locations |
List all locations |
| GET | /api/index.php/v1/proclaim/locations/{id} |
Get a single location |
| POST | /api/index.php/v1/proclaim/locations |
Create a location |
| PATCH | /api/index.php/v1/proclaim/locations/{id} |
Update a location |
| DELETE | /api/index.php/v1/proclaim/locations/{id} |
Delete a location |
List fields: id, location_text, published, access
Detail fields: adds address, suburb, state, country, postcode, telephone, webpage, image, language, ordering, landing_show
Results also honour multi-campus visibility, so a caller only sees locations they
are entitled to. email_to, user_id and contact_id cannot be set through the
API — email_to is the site's notification target.
| Method | URL | Description |
|---|---|---|
| GET | /api/index.php/v1/proclaim/messagetypes |
List all study types |
| GET | /api/index.php/v1/proclaim/messagetypes/{id} |
Get a single study type |
| POST | /api/index.php/v1/proclaim/messagetypes |
Create a study type |
| PATCH | /api/index.php/v1/proclaim/messagetypes/{id} |
Update a study type |
| DELETE | /api/index.php/v1/proclaim/messagetypes/{id} |
Delete a study type |
List fields: id, message_type, alias, published, access, ordering
Detail fields: adds landing_show
| Method | URL | Description |
|---|---|---|
| GET | /api/index.php/v1/proclaim/playlists |
List all playlists |
| GET | /api/index.php/v1/proclaim/playlists/{id} |
Get a single playlist |
List fields: id, title, remote_playlist_id, server_id, series_id, sync_enabled, last_sync, published, access, ordering
Detail fields: adds alias, description, writeback_enabled, language
Sync configuration (params, default_settings) is withheld. Playlist settings
are changed in the admin interface, never as a side effect of an API call —
sync_enabled and writeback_enabled can push changes to a live YouTube account.
| Method | URL | Description |
|---|---|---|
| GET | /api/index.php/v1/proclaim/comments |
List published comments |
| GET | /api/index.php/v1/proclaim/comments/{id} |
Get a single comment |
List fields: id, full_name, comment_date, comment_text, published, access, language
Detail fields: adds study_id
Published comments only — an unpublished one is being withheld by a moderator. Commenter email addresses and account IDs are never returned. There is no create endpoint: comments are submitted through the site so moderation applies.
| Method | URL | Description |
|---|---|---|
| GET | /api/index.php/v1/proclaim/servers |
List all media servers |
| GET | /api/index.php/v1/proclaim/servers/{id} |
Get a single server |
List fields: id, server_name, type, location_id, published
Detail fields: adds media, stats_synced_at, access
Credentials are never returned. The params column holds each addon's API
keys, client secrets and access tokens, and is withheld from both list and detail
responses.
Filters: ?filter[search]=, ?filter[type]=
| Method | URL | Description |
|---|---|---|
| GET | /api/index.php/v1/proclaim/templates |
List all display templates |
| GET | /api/index.php/v1/proclaim/templates/{id} |
Get a single template |
List fields: id, title, published
Detail fields: adds type, tmpl, location_id, access
The detail response includes the template markup. Sites that would rather not publish their markup should set the API to API Key Required rather than Public.
Filters: ?filter[search]=, ?filter[type]=
List endpoints support JSON:API offset-based pagination:
?page[limit]=20&page[offset]=0
| Parameter | Default | Description |
|---|---|---|
page[limit] |
20 | Items per page |
page[offset] |
0 | Starting offset |
The response includes pagination metadata and navigation links:
{
"links": {
"self": "...?page[offset]=20&page[limit]=20",
"next": "...?page[offset]=40&page[limit]=20",
"prev": "...?page[offset]=0&page[limit]=20",
"last": "...?page[offset]=80&page[limit]=20"
},
"meta": {
"total-pages": 5
}
}List endpoints support query parameter filtering via ?filter[field]=value. All filter values are sanitized server-side.
?filter[search]=keyword Search in title/alias
?filter[teacher]=5 Sermons by teacher ID
?filter[series]=3 Sermons in series ID
?filter[messagetype]=1 Filter by message type ID
?filter[location]=2 Filter by location ID
?filter[year]=2026 Filter by study year
?filter[language]=en-GB Filter by language
?filter[search]=keyword Search in name/alias
?filter[language]=en-GB Filter by language
?filter[search]=keyword Search in title/alias
?filter[location]=1 Filter by location ID
?filter[language]=en-GB Filter by language
?filter[search]=keyword Search in title/description
?filter[location]=1 Filter by location ID
?filter[language]=en-GB Filter by language
?filter[search]=keyword Search in study title
?filter[study_id]=42 Media files for a specific sermon
?filter[language]=en-GB Filter by language
Filters can be combined with pagination:
curl -H "Authorization: Bearer TOKEN" \
"https://example.com/api/index.php/v1/proclaim/sermons?filter[series]=3&filter[year]=2026&page[limit]=10"Cross-Origin Resource Sharing is built into Joomla's API application. Enable it in System > Global Configuration > API > CORS. No Proclaim-specific configuration is needed.
All responses follow the JSON:API 1.0 specification with content type application/vnd.api+json.
{
"links": {
"self": "https://example.com/api/index.php/v1/proclaim/sermons"
},
"data": [
{
"type": "sermons",
"id": "42",
"attributes": {
"studytitle": "The Sermon on the Mount",
"alias": "the-sermon-on-the-mount",
"studydate": "2026-03-15",
"studyintro": "An introduction to...",
"series_id": 5,
"access": 1,
"published": 1,
"hits": 128
}
}
],
"meta": {
"total-pages": 3
}
}{
"links": {
"self": "https://example.com/api/index.php/v1/proclaim/sermons/42"
},
"data": {
"type": "sermons",
"id": "42",
"attributes": {
"studytitle": "The Sermon on the Mount",
"alias": "the-sermon-on-the-mount",
"studydate": "2026-03-15",
"studyintro": "An introduction to...",
"studytext": "<p>Full sermon content...</p>",
"series_id": 5,
"access": 1,
"published": 1,
"hits": 128,
"params": {}
}
}
}| Status | Meaning |
|---|---|
| 201 | Resource created (POST) |
| 204 | Resource deleted (DELETE) |
| 401 | Missing or invalid API token |
| 403 | Authenticated but not authorized (missing ACL permission) |
| 404 | Resource not found, or API is disabled |
Write operations send JSON in the request body. The Content-Type header must be application/json.
Joomla ACL controls who can write:
| Operation | Permission Required |
|---|---|
| POST (create) |
core.create on com_proclaim
|
| PATCH (update) |
core.edit on com_proclaim
|
| DELETE |
core.delete on com_proclaim
|
Two further rules apply to the data itself:
-
publishedrequirescore.edit.state. Without it, created and updated items are forced to unpublished, so an integration cannot publish content it is not trusted to publish. -
created_byrequirescore.admin. Otherwise it is ignored, so an integration cannot attribute content to another user.
These checks only bite when the token belongs to a non-Super-User. Because API access defaults to Super Users only, the default setup passes every check above. See Least-privilege integrations.
Creates, updates and deletes made through the API appear in Users > Action Logs, tagged with their origin:
User integration created topic Grace (via API)
User admin created topic Grace (via admin)
One entry per change, using the same log messages as the admin interface — so an audit shows API and interface changes side by side rather than in separate places. Deletions record the item's title, not just its ID.
curl -X POST \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-d '{
"studytitle": "The Sermon on the Mount",
"studydate": "2026-04-01 10:00:00",
"published": 1,
"studyintro": "<p>Introduction text</p>",
"studytext": "<p>Full sermon content</p>",
"series_id": 5,
"messagetype": 1,
"location_id": 2,
"scriptures": [
{"reference_text": "John 3:16", "bible_version": "ESV"},
{"reference_text": "Romans 8:28", "bible_version": "NIV"}
],
"teachers": [
{"teacher_id": 3}
]
}' \
https://example.com/api/index.php/v1/proclaim/sermonsRequired fields: studytitle, studydate
Only send the fields you want to change:
curl -X PATCH \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-d '{"studytitle": "Updated Title", "published": 2}' \
https://example.com/api/index.php/v1/proclaim/sermons/42curl -X DELETE \
-H "Authorization: Bearer TOKEN" \
https://example.com/api/index.php/v1/proclaim/sermons/42Returns HTTP 204 (No Content) on success.
curl -X POST \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-d '{
"teachername": "Pastor Smith",
"title": "Senior Pastor",
"short": "<p>Brief bio</p>",
"published": 1
}' \
https://example.com/api/index.php/v1/proclaim/teachersUse these fields to link related resources:
| Field | On | References |
|---|---|---|
series_id |
Sermons | /proclaim/series/{id} |
teacher_id |
Series | /proclaim/teachers/{id} |
study_id |
Media | /proclaim/sermons/{id} |
server_id |
Media | Server type (internal) |
curl -H "Authorization: Bearer TOKEN" \
"https://example.com/api/index.php/v1/proclaim/sermons?page[limit]=10"curl -H "Authorization: Bearer TOKEN" \
"https://example.com/api/index.php/v1/proclaim/teachers/3"# First get the sermon, note the ID
curl -H "Authorization: Bearer TOKEN" \
"https://example.com/api/index.php/v1/proclaim/sermons/42"
# Then fetch media files (filter by study_id in your application)
curl -H "Authorization: Bearer TOKEN" \
"https://example.com/api/index.php/v1/proclaim/media"Need help with your site? Proclaim Support — the place to start for anything to do with your own install · Ask on GitHub
Something wrong with Proclaim itself? Report it on GitHub — bugs and code issues are tracked there, in the open.
More — Proclaim documentation · Helpful videos · Latest release · Christian Web Ministries
Security issues privately to info@christianwebministries.org, not a public tracker. When asking for help, say which Proclaim and Joomla versions you are on.
- Publish Your First Message
- Show Proclaim on Your Site
- Add Audio and Video
- Organise Your Messages
- Set Up Podcasting
- Control How Proclaim Looks
- Import and Migrate
- Maintain Your Site
- Multi-Campus-Admin-Guide
- Multi-Campus-User-Guide
- Template-Customization-Guide
- Vimeo-API-Setup
- Print-Friendly-View
- Protected-Media-Storage
- Content-Security-Policy
- Troubleshooting-FAQ
- Setting-up-your-development-environment
- Standards and Conventions
- Contributing-Workflow
- REST API
- Database-Schema
- Location-API-Reference
- Backward-Compatibility-Breaks-10.1
- ARS Migration Plugin
- Proclaim-Code-Road-map
- Tasks
- Overview
- Admin Center
- Messages
- Media Files
- Servers
- Teachers
- Series
- Podcasts
- Topics
- Locations
- Comments
- Message Types
- Playlists
- Templates
- Utilities