Skip to content
Browse documentation

API reference

Past works

Read a published portfolio of past works or case studies, with galleries and metadata, and record view or click events against an item.

Feature requirement: the project must have the past_works feature enabled, or these endpoints return 404.

  • Only past works with a published status are returned.
GET/api/v1/storefront/projects/{project_slug}/past-works

List Public Past Works

Parameters
NameTypeInDescription
project_slugstringpathRequired.
featuredboolean (nullable)queryOptional.
industrystring (nullable)queryOptional.
searchstring (nullable)queryOptional.
pageintegerqueryOptional. Page number (1-based)
page_sizeintegerqueryOptional. Number of items per page
Response 200 (list) · PublicPastWorkSummary[]
FieldTypeDescription
idstringrequired—
titlestringrequired—
slugstringrequired—
excerptstring (nullable)optional—
client_namestring (nullable)optional—
industrystring (nullable)optional—
locationstring (nullable)optional—
is_featuredbooleanrequired—
featured_mediaPastWorkMediaRead (nullable)optional—
published_atstring<date-time> (nullable)optional—
Example request
curl "https://api.webtools.ng/api/v1/storefront/projects/your-project/past-works" \
  -H "X-Project-Key: wt_pk_your_key"
GET/api/v1/storefront/projects/{project_slug}/past-works/{slug}

Get Public Past Work

Parameters
NameTypeInDescription
project_slugstringpathRequired.
slugstringpathRequired.
Response 200 · PublicPastWorkDetail
FieldTypeDescription
idstringrequired—
titlestringrequired—
slugstringrequired—
excerptstring (nullable)optional—
client_namestring (nullable)optional—
industrystring (nullable)optional—
locationstring (nullable)optional—
is_featuredbooleanrequired—
featured_mediaPastWorkMediaRead (nullable)optional—
published_atstring<date-time> (nullable)optional—
description_htmlstringrequired—
project_urlstring (nullable)optional—
started_atstring<date-time> (nullable)optional—
completed_atstring<date-time> (nullable)optional—
seoSeoReadrequiredNested SEO metadata for API read responses.
galleryPastWorkMediaRead[]optional—
Example request
curl "https://api.webtools.ng/api/v1/storefront/projects/your-project/past-works/{slug}" \
  -H "X-Project-Key: wt_pk_your_key"
POST/api/v1/storefront/projects/{project_slug}/past-works/{slug}/events

Record Past Work Event

Parameters
NameTypeInDescription
project_slugstringpathRequired.
slugstringpathRequired.
Request body · PastWorkEventCreate
FieldTypeDescription
event_typestringrequired—
metadataobjectoptional—
Example request
curl -X POST "https://api.webtools.ng/api/v1/storefront/projects/your-project/past-works/{slug}/events" \
  -H "X-Project-Key: wt_pk_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "event_type": "…" }'

← All resource groups