Publications

Create a publication

POST https://api.sparkloop.app/v2/publications

Request Body

{
  "publication": {
    "uuid": "pub_4bc1056297",
    "name": "My first newsletter",
    "description": "Publication for my first newsletter",
    "partner_categories": ["marketing", "tech"],
    "list_id": "c34kko0",
    "status": "active",
    "enabled_partner_program": true,
    "created_at": "2021-03-24T11:55:02.113Z"
  }
}

Get publications

GET https://api.sparkloop.app/v2/publications

Publications are ordered descendingly by created_at, meaning the first page shows the latest publications.

{
  "publications": [
    {
      "uuid": "pub_4bc1056297",
      "name": "My first newsletter",
      "description": "Publication for my first newsletter",
      "partner_categories": ["marketing", "tech"],
      "list_id": "c34kko0",
      "status": "active",
      "enabled_partner_program": true,
      "created_at": "2021-03-24T11:55:02.113Z"
    },
    {
      "uuid": "sub_869976268c",
      "name": "My second newsletter",
      "description": "Publication for my second newsletter",
      "partner_categories": ["lifestyle"],
      "list_id": "ppelz34",
      "status": "active",
      "enabled_partner_program": false,    
      "created_at": "2021-03-27T12:43:05.073Z"
    }
  ],
  "meta": {
    "per_page": 2,
    "page": 1,
    "total_pages": 2,
    "total_publications": 4
  }
}

Get a publication

GET https://api.sparkloop.app/v2/publications/:uuid

Returns a single publication by UUID

Path Parameters

{
  "publication": {
    "uuid": "pub_4bc1056297",
    "name": "My first newsletter",
    "description": "Publication for my first newsletter",
    "partner_categories": ["marketing", "tech"],
    "list_id": "c34kko0",
    "status": "active",
    "enabled_partner_program": true,
    "created_at": "2021-03-24T11:55:02.113Z"
  }
}

Update publication

PUT https://api.sparkloop.app/v2/publications/:uuid

Path Parameters

Request Body

{
  "publication": {
    "uuid": "pub_4bc1056297",
    "name": "My first newsletter",
    "description": "Publication for my first newsletter",
    "partner_categories": ["marketing", "tech"],
    "list_id": "c34kko0",
    "status": "active",
    "enabled_partner_program": true,
    "created_at": "2021-03-24T11:55:02.113Z"
  }
}

Delete publication

DELETE https://api.sparkloop.app/v2/publications/:uuid

Path Parameters

{
    "message": "Successfully deleted publication pub_34c8e39cf4"
}

Last updated