/projects

Projects API is for reporting on pricing project states and to aid in building custom quote flows

Retrieve all projects

Return all pricing project versions

get
Query parameters
project_referencestringOptional

Project reference. It is a UUID.

Example: 56c575d2-b6b9-44ed-9c75-5d705b987ec1
statusstringOptional

Pricing project published status. It can be in draft, approved, published or subsequently unpublished

Example: draft
Responses
200
/sw/projects response
application/json
get
GET /sw/projects HTTP/1.1
Host: api.llow.io
Accept: */*
200

/sw/projects response

{
  "project_reference": "56c575d2-b6b9-44ed-9c75-5d705b987ec1",
  "version_reference": "46c575d2-b6b9-44ed-9c75-5d705b987ec1",
  "company_reference": "86c575d2-b6b9-44ed-9c75-8d705b987ec1",
  "name": "Monthly motor insurance product",
  "description": "Monthly motor insurance product for the UK market",
  "summary": "<p>Example change log of version</p>",
  "version": 1,
  "status": "draft",
  "size": 8.6,
  "disabled": false,
  "approved_at": "2021-04-22T14:29:22.000Z",
  "published_at": "2021-04-22T14:29:22.000Z",
  "updated_at": "2021-04-22T14:29:22.000Z",
  "created_at": "2021-03-22T14:29:22.000Z",
  "versions": [
    {}
  ]
}

This will retrieve all projects within your account. It will show the latest published version along with other useful project details.

Retrieve a specific project

Return the latest pricing project

get
Path parameters
project_referencestringRequired

Project reference. It is a UUID.

Example: 56c575d2-b6b9-44ed-9c75-5d705b987ec1
Query parameters
statusstringOptional

Pricing project published status. It can be in draft, approved, published or subsequently unpublished

Example: draft
version_referencestringOptional

Project version reference. It is a UUID.

Example: 46c575d2-b6b9-44ed-9c75-5d705b987ec1
Responses
200
/sw/projects/{project_reference} response
application/json
get
GET /sw/projects/{project_reference} HTTP/1.1
Host: api.llow.io
Accept: */*
200

/sw/projects/{project_reference} response

{
  "project_reference": "56c575d2-b6b9-44ed-9c75-5d705b987ec1",
  "version_reference": "46c575d2-b6b9-44ed-9c75-5d705b987ec1",
  "company_reference": "86c575d2-b6b9-44ed-9c75-8d705b987ec1",
  "name": "Monthly motor insurance product",
  "description": "Monthly motor insurance product for the UK market",
  "summary": "<p>Example change log of version</p>",
  "version": 1,
  "status": "draft",
  "size": 8.6,
  "disabled": false,
  "approved_at": "2021-04-22T14:29:22.000Z",
  "published_at": "2021-04-22T14:29:22.000Z",
  "updated_at": "2021-04-22T14:29:22.000Z",
  "created_at": "2021-03-22T14:29:22.000Z",
  "versions": [
    {}
  ]
}

This will show a specific project with the latest published version, all versions to date and their status.

Each project has a unique project_reference and each version has a unique version_reference.

Retrieve all project versions

Return all pricing project versions

get
Query parameters
project_referencestringOptional

Project reference. It is a UUID.

Example: 56c575d2-b6b9-44ed-9c75-5d705b987ec1
version_referencestringOptional

Project version reference. It is a UUID.

Example: 46c575d2-b6b9-44ed-9c75-5d705b987ec1
summarystringOptional

A html formatted change log of a project version.

Example: <p>Example change log of version</p>
Responses
200
/sw/projects/versions response
application/json
get
GET /sw/projects/versions HTTP/1.1
Host: api.llow.io
Accept: */*
200

/sw/projects/versions response

{
  "project_reference": "56c575d2-b6b9-44ed-9c75-5d705b987ec1",
  "version_reference": "46c575d2-b6b9-44ed-9c75-5d705b987ec1",
  "company_reference": "86c575d2-b6b9-44ed-9c75-8d705b987ec1",
  "name": "Monthly motor insurance product",
  "description": "Monthly motor insurance product for the UK market",
  "summary": "<p>Example change log of version</p>",
  "version": 1,
  "status": "draft",
  "size": 8.6,
  "disabled": false,
  "approved_at": "2021-04-22T14:29:22.000Z",
  "published_at": "2021-04-22T14:29:22.000Z",
  "updated_at": "2021-04-22T14:29:22.000Z",
  "created_at": "2021-03-22T14:29:22.000Z"
}

Project versions can be returned in bulk or filtered via the summary change log (using ?summary)

https://api.llow.io/sw/projects/versions?summary=search%20term

or via project_reference

https://api.llow.io/sw/projects/versions?project_reference=56c575d2-b6b9-44ed-9c75-5d705b987ec1

Help building your own quote flows

This is a public API endpoint. You can hit this endpoint for client-side code by just providing client_id_key in the header. View authentication to find out more. Public APIs have /public/ within the endpoint url.

Returns public project details to build custom form

get
Path parameters
project_referencestringRequired

Project reference. It is a UUID.

Example: 56c575d2-b6b9-44ed-9c75-5d705b987ec1
Responses
200
/sw/public/projects/{project_reference} response
application/json
get
GET /sw/public/projects/{project_reference} HTTP/1.1
Host: api.llow.io
Accept: */*
200

/sw/public/projects/{project_reference} response

{
  "version_reference": "46c575d2-b6b9-44ed-9c75-5d705b987ec1",
  "project_reference": "56c575d2-b6b9-44ed-9c75-5d705b987ec1",
  "version": 1,
  "updated_at": "2021-04-22T14:29:22.000Z",
  "inputs": {
    "bike_type": {
      "type": "string",
      "label": "Your bike type",
      "def": "Road"
    }
  },
  "lists": {
    "bike_type": {
      "type": "string",
      "data": [
        "Road",
        "Mountain",
        "BMX"
      ]
    }
  }
}

The public project endpoint will return all the input parameters needed for a Swallow pricing project and all the lists of data options (generated by factor table data). This allows you to build custom and validated custom quote flows.

The quote flows can be programmatic (aggregator integrations) or via custom build user interfaces (within an app or website).

Last updated