Skip to content

Public routes: Public help center

The help center’s public articles, for a web page with no signed-in user.

What it doesRoute
Search the public articlesGET /public/v1/help/articles
Read a public articleGET /public/v1/help/articles/{slug}
Say whether a public article helpedPOST /public/v1/help/articles/{slug}/rating
Fetch an article’s pictureGET /public/v1/help/assets/{asset_id}
List the public collectionsGET /public/v1/help/collections
Read a public collectionGET /public/v1/help/collections/{slug}
Find the app whose help center is at a domainGET /public/v1/help/hosts/{host}
Read a help center request’s linkGET /public/v1/help/requests/{token}
Confirm a help center requestPOST /public/v1/help/requests/{token}
List the kinds of request the help center takesGET /public/v1/help/ticket-forms
Send a request from the help centerPOST /public/v1/help/tickets

GET /public/v1/help/articles

Needs: the app key (X-CRM-App-Key, or ?app=). No sign-in.

Parameters

NameInDescription
appqueryThe app’s public key, for a request that cannot send the X-CRM-App-Key header.
langqueryA language to read in (a BCP 47 tag), instead of the user’s own.
limitqueryHow many to answer, at most.
qqueryWords to search for.

Answers

StatusBodyMeaning
200ArticlesOK
404problemNot found, or the part is switched off.
429problemToo many requests: wait for Retry-After.

GET /public/v1/help/articles/{slug}

Needs: the app key (X-CRM-App-Key, or ?app=). No sign-in.

Parameters

NameInDescription
slug (required)pathThe article’s or collection’s slug.
appqueryThe app’s public key, for a request that cannot send the X-CRM-App-Key header.
langqueryA language to read in (a BCP 47 tag), instead of the user’s own.

Answers

StatusBodyMeaning
200ArticleOK
404problemNot found, or the part is switched off.
429problemToo many requests: wait for Retry-After.

POST /public/v1/help/articles/{slug}/rating

From a reader with no account: their own id for the page, kept apart from every user’s.

Needs: the app key (X-CRM-App-Key, or ?app=). No sign-in.

Parameters

NameInDescription
slug (required)pathThe article’s or collection’s slug.
appqueryThe app’s public key, for a request that cannot send the X-CRM-App-Key header.

Body (application/json): PublicRatingBody

FieldTypeDescription
helpful (always)boolean
languagestringThe language the reader read it in (Article.Language), for the help report; left out, the app’s default.
visitor (always)string

Answers

StatusBodyMeaning
204noneDone, with nothing to say
404problemNot found, or the part is switched off.
429problemToo many requests: wait for Retry-After.

GET /public/v1/help/assets/{asset_id}

A redirect to the picture’s short-lived address.

Needs: nothing: no credential.

Parameters

NameInDescription
asset_id (required)pathThe picture’s id.

Answers

StatusBodyMeaning
302noneA redirect
404problemNot found, or the part is switched off.
429problemToo many requests: wait for Retry-After.

GET /public/v1/help/collections

Only articles marked public and meant for everyone. Name the app with the X-CRM-App-Key header, or with ?app= where a header cannot be sent.

Needs: the app key (X-CRM-App-Key, or ?app=). No sign-in.

Parameters

NameInDescription
appqueryThe app’s public key, for a request that cannot send the X-CRM-App-Key header.
langqueryA language to read in (a BCP 47 tag), instead of the user’s own.

Answers

StatusBodyMeaning
200CollectionsOK
404problemNot found, or the part is switched off.
429problemToo many requests: wait for Retry-After.

GET /public/v1/help/collections/{slug}

Needs: the app key (X-CRM-App-Key, or ?app=). No sign-in.

Parameters

NameInDescription
slug (required)pathThe article’s or collection’s slug.
appqueryThe app’s public key, for a request that cannot send the X-CRM-App-Key header.
langqueryA language to read in (a BCP 47 tag), instead of the user’s own.

Answers

StatusBodyMeaning
200CollectionArticlesOK
404problemNot found, or the part is switched off.
429problemToo many requests: wait for Retry-After.

Find the app whose help center is at a domain

Section titled “Find the app whose help center is at a domain”

GET /public/v1/help/hosts/{host}

The app’s public face, as Read an app’s public face answers it, for a page asked for at a help center’s own domain (help_host).

Needs: nothing: no credential.

Parameters

NameInDescription
host (required)path

Answers

StatusBodyMeaning
200PublicAppOK
404problemNot found, or the part is switched off.
429problemToo many requests: wait for Retry-After.

GET /public/v1/help/requests/{token}

What the page of the link emailed for a help center request shows: the app’s brand, the address masked, and whether it was opened. Reading it opens nothing. 404 for a link that is not ours; 410 for one not opened within a day.

Needs: nothing: no credential.

Parameters

NameInDescription
token (required)pathThe signed token from the email’s link.

Answers

StatusBodyMeaning
200HelpRequestPageOK
404problemNot found, or the part is switched off.
410problemRefused
429problemToo many requests: wait for Retry-After.

POST /public/v1/help/requests/{token}

The link’s page’s button: opens the request’s ticket, once; pressed again it answers as before and opens nothing more. 404 for a link that is not ours, or a request the help center no longer takes; 410 for one not opened within a day.

Needs: nothing: no credential.

Parameters

NameInDescription
token (required)pathThe signed token from the email’s link.

Answers

StatusBodyMeaning
200HelpRequestPageOK
404problemNot found, or the part is switched off.
410problemRefused
429problemToo many requests: wait for Retry-After.

List the kinds of request the help center takes

Section titled “List the kinds of request the help center takes”

GET /public/v1/help/ticket-forms

The ticket types the app’s staff open from its public help center, with the fields a guest sees. Empty while none is; 404 while the help center or the messenger is off.

Needs: the app key (X-CRM-App-Key, or ?app=). No sign-in.

Parameters

NameInDescription
appqueryThe app’s public key, for a request that cannot send the X-CRM-App-Key header.

Answers

StatusBodyMeaning
200TicketFormsOK
404problemNot found, or the part is switched off.
429problemToo many requests: wait for Retry-After.

POST /public/v1/help/tickets

From a reader with no account, who gives the email address the reply goes to. The answer is 202 whatever the address is, and nothing is opened yet: the address is emailed a link, in PurrCRM’s own words, which opens the ticket as the app’s contact with that address (a new one when there is none). A type the help center does not take is 404; past the reader’s or the app’s budget, 429.

Needs: the app key (X-CRM-App-Key, or ?app=). No sign-in.

Parameters

NameInDescription
appqueryThe app’s public key, for a request that cannot send the X-CRM-App-Key header.

Body (application/json): PublicTicketBody

FieldTypeDescription
email (always)string
namestring
ticket (always)NewTicketBody

Answers

StatusBodyMeaning
202noneAccepted
400problemThe request could not be read: the problem names the field.
404problemNot found, or the part is switched off.
429problemToo many requests: wait for Retry-After.