Retrieve a published portal
GET
/v1/p/portals/{id}
const url = 'http://api.disclosebot.localdev:3000/v1/p/portals/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/portals/exampleUnauthenticated. The same payload the hosted portal page and the portal embed render, with each group’s briefs inline. An unpublished portal is not found.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Portal 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
string
welcome_message
string
public_url
required
The hosted portal 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
groups
required
Array<object>
object
id
string
name
string
description
string
position
integer
briefs
Array<object>
object
id
required
string
shortcode
required
string
name
required
string
short_description
string
description
string
description_html
string
rules_of_engagement
string
rules_of_engagement_html
string
submission_policy
string
submission_policy_html
string
assets
Array<object>
object
id
string
kind
string
value
string
short_description
string
in_scope_assets
Array<object>
object
id
string
kind
string
value
string
short_description
string
out_of_scope_assets
Array<object>
object
id
string
kind
string
value
string
short_description
string
policies
Array<object>
object
relationships
object
included
Array<object>
object
id
required
string
type
required
string
attributes
required
object
name
string
Example
{ "data": { "type": "portal" }, "included": [ { "type": "organization" } ]}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