Learnings

Keep what a team decided, assumed, worried about and learned about a campaign, an activity or a week, so the next piece of work can start from it.

Authentication required

All endpoints require a Bearer token in the Authorization header. See the Authentication guide for setup instructions.

GET /v1/learnings

List one campaign's learnings: its decisions, rationale, assumptions, risks, lessons and recommendations for next time.

bash
GET /v1/learnings?workspace_id=1c7743a8-6410-4a9e-9f3b-2c1d5e8a4b01&campaign_id=3a8d1f56-9e42-4b7c-a1d8-6f0e2b9c4a03
Authorization: Bearer {token}

Parameters

NameTypeRequiredDescription
workspaceIdstring (UUID)RequiredWorkspace identifier.
campaignIdstring (UUID)RequiredUnique identifier (UUID v4).

Response

Returns { items, totalCount, facets, _meta } with paginated results.

GET /v1/learnings/search

Search learnings across every campaign in the workspace by text and type, so a past lesson or decision turns up without knowing which campaign it came from.

bash
GET /v1/learnings/search?page_index=0&page_size=25&workspace_id=1c7743a8-6410-4a9e-9f3b-2c1d5e8a4b01
Authorization: Bearer {token}

Parameters

NameTypeRequiredDescription
pageIndexintegerRequiredZero-based page index for pagination.
pageSizeintegerRequiredNumber of items per page (1-100).
workspaceIdstring (UUID)RequiredWorkspace identifier.
searchTermstring—Free-text term matched against learning titles and wording.
learningTypesArray<'decision' | 'rationale' | 'hypothesis' | 'assumption' | 'creative_strategy' | 'agency_recommendation' | 'impact_mechanism' | 'risk' | 'constraint' | 'lesson' | 'future_recommendation'>—Restrict results to these learning types. Defaults to every type.
campaignIdstring (UUID)—Restrict results to one campaign, for example to re-read its own history.
excludeCampaignIdstring (UUID)—Omit one campaign, so the current campaign does not crowd out past learnings.

Response

Returns { items, totalCount, facets, _meta } with paginated results.

GET /v1/learnings/:id

Get one learning with who recorded it, the original author and date, its current revision number, and the other learnings or source files it references.

bash
GET /v1/learnings/:id
Authorization: Bearer {token}

Parameters

NameTypeRequiredDescription
idstring (UUID)RequiredUnique identifier (UUID v4).

Response

Returns { data, _meta } with the result.

GET /v1/learnings/:id/revisions

List every revision of one learning, including changes to its type, title, wording, attribution and references, so a correction can be told apart from the original wording.

bash
GET /v1/learnings/:id/revisions
Authorization: Bearer {token}

Parameters

NameTypeRequiredDescription
idstring (UUID)RequiredUnique identifier (UUID v4).

Response

Returns { items, totalCount, facets, _meta } with paginated results.

POST /v1/learnings

Record a learning about a campaign, one activity or one week: its type (decision, rationale, assumption, risk, lesson and others), a title and the wording. A learning about a week or an activity shows beside it on the timeline. It can also carry the original author and date, and the past learnings or source files it was based on.

bash
POST /v1/learnings
Authorization: Bearer {token}
Content-Type: application/json

{
  "workspace_id": "1c7743a8-6410-4a9e-9f3b-2c1d5e8a4b01",
  "learning_type": "...",
  "title": "...",
  "content": "Note content here."
}

Parameters

NameTypeRequiredDescription
workspaceIdstring (UUID)RequiredWorkspace identifier.
campaignIdstring (UUID)—The campaign the learning is about. Give exactly one of campaignId, activityId or weekStart.
activityIdstring (UUID)—The activity the learning is about, such as one post, event or ad. Give exactly one of campaignId, activityId or weekStart.
weekStartstring—Any date (YYYY-MM-DD) in the week the learning is about. It is filed under that week's Monday. Give exactly one of campaignId, activityId or weekStart.
learningType'decision' | 'rationale' | 'hypothesis' | 'assumption' | 'creative_strategy' | 'agency_recommendation' | 'impact_mechanism' | 'risk' | 'constraint' | 'lesson' | 'future_recommendation'RequiredThe type of learning: decision, rationale, hypothesis, assumption, creative_strategy, agency_recommendation, impact_mechanism, risk, constraint, lesson, or future_recommendation.
titlestringRequiredOne-line summary of the learning.
contentstringRequiredFull wording of the decision, reasoning, risk or lesson.
authorNamestring | null—Who originally wrote it, when that differs from the user recording it.
authoredAtstring | null—Date (YYYY-MM-DD) it was originally written, when known.
referencesArray<unknown>—Past learnings or attached source files this learning was based on. A reference to a learning may pin the exact revision that was read.

Response

Returns { data, _meta } with the result.

PATCH /v1/learnings/:id

Update the title, wording, type, author, authored date or references of one learning, recorded as a new revision. Pass expectedRevisionNumber to get a conflict back instead of overwriting a change someone else saved first.

bash
PATCH /v1/learnings/:id
Authorization: Bearer {token}

Parameters

NameTypeRequiredDescription
learningType'decision' | 'rationale' | 'hypothesis' | 'assumption' | 'creative_strategy' | 'agency_recommendation' | 'impact_mechanism' | 'risk' | 'constraint' | 'lesson' | 'future_recommendation'—The type of learning: decision, rationale, hypothesis, assumption, creative_strategy, agency_recommendation, impact_mechanism, risk, constraint, lesson, or future_recommendation.
titlestring—One-line summary of the learning.
contentstring—Full wording of the decision, reasoning, risk or lesson.
authorNamestring | null—Who originally wrote it, when that differs from the user recording it.
authoredAtstring | null—Date (YYYY-MM-DD) it was originally written, when known.
referencesArray<unknown>—Past learnings or attached source files this learning was based on. A reference to a learning may pin the exact revision that was read.
idstring (UUID)RequiredUnique identifier (UUID v4).
expectedRevisionNumberinteger—

Response

Returns { data, _meta } with the result.

DELETE /v1/learnings/:id

Delete one learning. It is soft deleted and keeps its revision history.

bash
DELETE /v1/learnings/:id
Authorization: Bearer {token}

Parameters

NameTypeRequiredDescription
idstring (UUID)RequiredUnique identifier (UUID v4).

Response

Returns { data, _meta } with the result.