Introduction

Bound.re API allows you to manage your products and location items, as well as perform geospatial searches.

This documentation aims to provide all the information you need to work with our API.

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by visiting the API Tokens page in your account settings.

Product management

APIs for managing products

GET api/v1/products

GET
https://bound.re
/api/v1/products
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://bound.re/api/v1/products" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "message": "Unauthenticated."
}

POST api/v1/products

POST
https://bound.re
/api/v1/products
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://bound.re/api/v1/products" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"kkcbgasgvc\",
    \"description\": \"Quisquam ea enim illo aperiam voluptas.\",
    \"external_id\": \"ewoatfstfd\",
    \"currency_code\": \"vbu\",
    \"max_exposure_allowed\": 2.9256408,
    \"search_radius_unit\": \"mi\",
    \"search_radius_distance\": 5.14208
}"

GET api/v1/products/{id}

GET
https://bound.re
/api/v1/products/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the product.

Example:
1
Example request:
curl --request GET \
    --get "https://bound.re/api/v1/products/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "message": "Unauthenticated."
}

PUT api/v1/products/{id}

PUT
PATCH
https://bound.re
/api/v1/products/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the product.

Example:
1

Body Parameters

Example request:
curl --request PUT \
    "https://bound.re/api/v1/products/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"fiuamoq\",
    \"description\": \"Dolor fugit dolorum sit.\",
    \"external_id\": \"szleqtwtdolgjaiogt\",
    \"currency_code\": \"bsq\",
    \"max_exposure_allowed\": 457.36,
    \"search_radius_unit\": \"km\",
    \"search_radius_distance\": 1476.60115584
}"

Upsert location item

APIs for upserting location items

Search for location items within the product's exposure area.

PUT
https://bound.re
/api/v1/products/{product_id}/location-items
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

product_id
integer
required

The ID of the product.

Example:
1

Body Parameters

Example request:
curl --request PUT \
    "https://bound.re/api/v1/products/1/location-items" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"external_id\": \"quasi\",
    \"cover_status\": \"quotation\",
    \"coverage_amount\": 0,
    \"cover_start_date\": \"2025-02-28T13:59:12+00:00\",
    \"cover_end_date\": \"2071-07-30\",
    \"location\": {
        \"line1\": \"cgbpzdnzbhi\",
        \"line2\": \"jdqwwtwfpueozxjblqyuydw\",
        \"town\": \"eydpxxncpswhenym\",
        \"county\": \"hmozd\",
        \"country\": \"unhc\",
        \"postal_code\": \"szqpyzsgvohj\"
    },
    \"max_exposure_allowed\": 1,
    \"search_radius_unit\": \"km\",
    \"search_radius_distance\": 0
}"
Example response:
{
    "outcome": "added" | "not_added",
    "search_radius_unit": "km" | "mi",
    "search_radius_distance": 100,
    "max_exposure_allowed": 1000000,
    "max_exposure_from_date": "2024-05-01",
    "max_exposure_to_date": "2024-10-20",
    "max_exposure_amount_including_item": 754300,
    "max_exposure_amount_excluding_item": 704300,
    "total_exposure_amount_currency": "GBP"
}