Retrieve a published brief
GET
/v1/p/briefs/{id}
const url = 'http://api.disclosebot.localdev:3000/v1/p/briefs/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://api.disclosebot.localdev:3000/v1/p/briefs/exampleUnauthenticated. The same payload the hosted brief page and the brief embed render. An unpublished brief is not found.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Brief id or shortcode
Responses
Section titled “ Responses ”Successful
Media type application/vnd.api+json
object
data
required
object
id
required
string
type
required
string
attributes
required
object
name
required
string
shortcode
required
string
short_description
string
description
Raw markdown
string
description_html
Rendered, sanitized HTML
string
rules_of_engagement
string
rules_of_engagement_html
string
submission_policy
string
submission_policy_html
string
faq
Array<object>
object
show_public_reports
boolean
public_url
required
The hosted brief page
string
attribution
required
Whether the widget shows the “Powered by” mark; false only when the plan includes white label
boolean
updated_at
string
branding
required
object
primary_color
string
secondary_color
string
accent_color
string
font_heading
string
font_body
string
logo_url
string
banner_url
string
google_fonts
Array<string>
brand_name
string
brand_url
string
in_scope_assets
required
Array<object>
object
id
string
kind
string
value
string
short_description
string
out_of_scope_assets
required
Array<object>
object
id
string
kind
string
value
string
short_description
string
relationships
object
included
Array<object>
object
Example
{ "data": { "type": "brief" }}The plan does not include embeds
Media type application/vnd.api+json
object
errors
required
Array<object>
object
title
required
string
detail
string
code
required
string
status
required
string
meta
required
object
feature
required
The entitlement feature key, e.g. automation
string
required_plan
The lowest-priced plan that includes the feature
string
organization_name
Public reads only: the organization the refused document belongs to
string
public_url
Public reads only: the hosted page the embed links to instead
string
Example
{ "errors": [ { "title": "Upgrade required", "code": "upgrade_required", "status": "403" } ]}Not published, or unknown