Newsroom API Documentation
Everything you need to integrate pr.co into your website or app.

Supported Formats

json

GET /v1/pressrooms/:pressroom_id/documents.json

Retrieves a list of documents for a specific pressroom

Supported Formats

json

Errors

Code Description
404 Missing

Examples

GET /v1/pressrooms/1001/documents.json
200
{
  "data": [
    {
      "title": "Facebook IPO pdf",
      "url": "https://d3gvv7thuwd750.cloudfront.net/1001/documents/1-facebook-ipo-2012.pdf",
      "id": 1,
      "permalink": "/documents/1",
      "content_type": "pdf",
      "file_size": 80643,
      "type": "document"
    }
  ],
  "paging": {
    "page": 0,
    "limit": 30,
    "total": 30
  }
}

Params

Param name Description
pressroom_id
required

Pressroom id or pressroom domain

Validations:

  • Must be a String


GET /v1/pressrooms/:pressroom_id/documents/:id.json

Retrieve a specific document

Supported Formats

json

Errors

Code Description
404 Missing

Examples

GET /v1/pressrooms/1001/documents/1.json
200
{
  "data": {
    "title": "Facebook IPO pdf",
    "url": "https://d3gvv7thuwd750.cloudfront.net/1001/documents/1-facebook-ipo-2012.pdf",
    "id": 1,
    "permalink": "/documents/1",
    "content_type": "pdf",
    "file_size": 80643,
    "type": "document"
  }
}

Params

Param name Description
pressroom_id
required

Pressroom id or pressroom domain

Validations:

  • Must be a String

id
required

Dcoument id

Validations:

  • Must be a String