REST API & Companion Plugin
Publish an artist’s gig listings and repertoire automatically to their own WordPress website — updated whenever you make changes in your agency install.
How it works
Your agency install acts as the central hub. Each artist’s own WordPress website installs the free PB Gig Diary Companion plugin and connects to your agency install via REST API. When you add or update a gig in your agency install, it appears automatically on the artist’s website — no double entry, no manual updates.
Setting up the REST API
-
Enable the REST API in your agency install
Go to Gig Diary → Settings → General and enable the REST API option. An API key will be generated — copy this for use in the next step.
-
Note your agency site URL and artist slug
You’ll need your agency site URL (e.g.
https://myagency.co.uk) and the artist’s slug from Gig Diary → Artists.
Installing the companion plugin
- Download the free PB Gig Diary Companion plugin from purebaltic.co.uk
- Install it on the artist’s WordPress website via Plugins → Add New → Upload Plugin
- Activate the plugin
-
Go to Gig Diary Companion → Settings and enter:
- Your agency site URL
- The artist’s slug
- The API key from your agency install
- Click Save and Test Connection to verify the link is working
Displaying gigs on the artist’s website
Once connected, use the same shortcode on the artist’s website as you would on your agency site:
[pb_gig_diary]
The companion plugin fetches the gig data from your agency install and displays it using the same styling and shortcode options. All the same parameters work — upcoming_only, past_only, count, year etc.
Displaying the repertoire on the artist’s website
The artist’s song catalogue can also be published on their own site:
[pb_artist_repertoire]
This pulls the active songs for that artist from your agency install.
How updates propagate
The companion plugin caches gig data locally and refreshes it periodically. When you make a change in your agency install:
- The artist’s website will reflect the change within a few minutes
- The cache can be manually cleared from Gig Diary Companion → Settings → Clear cache if you need an immediate update
REST API endpoints
For developers who want to build their own integration, the following endpoints are available on your agency install:
| Endpoint | Returns |
|---|---|
/wp-json/pb-gig-diary/v1/gigs/{artist-slug} | All upcoming and past gigs for an artist |
/wp-json/pb-gig-diary/v1/songs/{artist-slug} | All active songs for an artist |
All requests require the X-PB-API-Key header with your API key.

