MENU navbar-image

Introduction

API documentation for developers

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

Rate Limiting

The API implements rate limiting to ensure fair usage and system stability. Different endpoint groups have different rate limits:

When you exceed the rate limit, the API will return a 429 Too Many Requests response. Rate limit information is included in the response headers:

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.

Our API is currently not available for external access outside of the Smarter Launch application.

App Data

Retrieve system reference data including countries, states, user roles, record statuses, industries, property locations, and other enumerated values needed for application functionality.

Application Settings.

requires authentication

Show the list of application data: [roles, company_locations, statuses, countries[states], client_version]

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/app-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/app-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/app-data"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/app-data

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Automations

Create workflow automations with triggers, filters, and actions to automate business processes. Automations can be enabled/disabled and configured to run during specific business hours.

List

requires authentication

Shows the list of Automations with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/automations?page=2&page_size=1&sort_by=qui&sort_order=omnis&search=neque" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/automations';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '2',
            'page_size' => '1',
            'sort_by' => 'qui',
            'sort_order' => 'omnis',
            'search' => 'neque',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/automations"
);

const params = {
    "page": "2",
    "page_size": "1",
    "sort_by": "qui",
    "sort_order": "omnis",
    "search": "neque",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/automations

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

is_enabled   string  optional  

boolean Filter by enabled status. Example : true Example: praesentium

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 2

page_size   integer  optional  

optional The number of record you want per page. Example: 1

sort_by   string  optional  

optional The column name. Example: qui

sort_order   string  optional  

optional The order in which you want your records. Example: omnis

search   string  optional  

optional The general search, it will find matching string. Example: neque

Create

requires authentication

Store a newly created Automation.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/automations" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Small Pests\",
    \"description\": \"Lorem ipsum dolor sit amet consectetur adipisicing elit\",
    \"type\": \"Lorem ipsum dolor sit amet consectetur adipisicing elit\",
    \"actions\": [
        \"beatae\"
    ],
    \"filters\": [
        \"est\"
    ],
    \"triggers\": [
        \"et\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/automations';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Small Pests',
            'description' => 'Lorem ipsum dolor sit amet consectetur adipisicing elit',
            'type' => 'Lorem ipsum dolor sit amet consectetur adipisicing elit',
            'actions' => [
                'beatae',
            ],
            'filters' => [
                'est',
            ],
            'triggers' => [
                'et',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/automations"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Small Pests",
    "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit",
    "type": "Lorem ipsum dolor sit amet consectetur adipisicing elit",
    "actions": [
        "beatae"
    ],
    "filters": [
        "est"
    ],
    "triggers": [
        "et"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/automations

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the automation. Example: Small Pests

description   string  optional  

The description of the automation. Example: Lorem ipsum dolor sit amet consectetur adipisicing elit

type   string   

The type of the automation. Example: Lorem ipsum dolor sit amet consectetur adipisicing elit

actions   string[]  optional  

of object required The actions of automation. Example : [{action: "SEND_EMAIL", value: ["john@smarterlaunch.com", "smith@smarterlaunch.com"], settings: {body: "Please follow-up with this and set an appointment."}}]

filters   string[]  optional  

of object required The filters of automation. Example : [{type: "CUSTOMER",operator: "IS",value: "3245d630-24fd-11ec-accd-e397aec85c7f",}, {type: "USER",operator: "IS_ONE_OF",value: ["3245d630-24fd-11ec-accd-e397aec85c7f", "3245d630-24fd-11ec-accd-e397aec85c7h"]}]

triggers   string[]  optional  

of object required The triggers of automation. Example : [{type: "CUSTOMER",operator: "IS_CHANGED_TO",value: "3245d630-24fd-11ec-accd-e397aec85c7f"}]

Get

requires authentication

Display the specified Automation.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/1/automations/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/1/automations/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/1/automations/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/automations/{automation_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

automation_uuid   string  optional  

The UUID of the automation. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Update

requires authentication

Modify the specified Automation.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/automations/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Small Pests\",
    \"description\": \"Lorem ipsum dolor sit amet consectetur adipisicing elit\",
    \"type\": \"Lorem ipsum dolor sit amet consectetur adipisicing elit\",
    \"actions\": [
        \"omnis\"
    ],
    \"filters\": [
        \"maxime\"
    ],
    \"triggers\": [
        \"vero\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/automations/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Small Pests',
            'description' => 'Lorem ipsum dolor sit amet consectetur adipisicing elit',
            'type' => 'Lorem ipsum dolor sit amet consectetur adipisicing elit',
            'actions' => [
                'omnis',
            ],
            'filters' => [
                'maxime',
            ],
            'triggers' => [
                'vero',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/automations/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Small Pests",
    "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit",
    "type": "Lorem ipsum dolor sit amet consectetur adipisicing elit",
    "actions": [
        "omnis"
    ],
    "filters": [
        "maxime"
    ],
    "triggers": [
        "vero"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/automations/{automation_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

automationUuid   string   

The uuid of the automation. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

automation_uuid   string  optional  

The UUID of the automation. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the automation. Example: Small Pests

description   string  optional  

The description of the automation. Example: Lorem ipsum dolor sit amet consectetur adipisicing elit

type   string   

The type of the automation. Example: Lorem ipsum dolor sit amet consectetur adipisicing elit

actions   string[]  optional  

of object required The actions of automation. Example : [{action: "SEND_EMAIL",value: ["john@smarterlaunch.com", "smith@smarterlaunch.com"], settings: {body: "Please follow-up with this and set an appointment."}}]

filters   string[]  optional  

of object required The filters of automation. Example : [{type: "CUSTOMER",operator: "IS", value: "3245d630-24fd-11ec-accd-e397aec85c7f",}, {type: "USER",operator: "IS_ONE_OF", value: ["3245d630-24fd-11ec-accd-e397aec85c7f", "3245d630-24fd-11ec-accd-e397aec85c7h"]}]

triggers   string[]  optional  

of object required The triggers of automation. Example : [{type: "CUSTOMER",operator: "IS_CHANGED_TO",value: "3245d630-24fd-11ec-accd-e397aec85c7f"}]

Patch

requires authentication

Perform patches for the specified Automation.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/automations/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Small Pests\",
    \"description\": \"Lorem ipsum dolor sit amet consectetur adipisicing elit\",
    \"type\": \"Lorem ipsum dolor sit amet consectetur adipisicing elit\",
    \"actions\": [
        \"voluptatem\"
    ],
    \"filters\": [
        \"unde\"
    ],
    \"triggers\": [
        \"quia\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/automations/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Small Pests',
            'description' => 'Lorem ipsum dolor sit amet consectetur adipisicing elit',
            'type' => 'Lorem ipsum dolor sit amet consectetur adipisicing elit',
            'actions' => [
                'voluptatem',
            ],
            'filters' => [
                'unde',
            ],
            'triggers' => [
                'quia',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/automations/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Small Pests",
    "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit",
    "type": "Lorem ipsum dolor sit amet consectetur adipisicing elit",
    "actions": [
        "voluptatem"
    ],
    "filters": [
        "unde"
    ],
    "triggers": [
        "quia"
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/automations/{automation_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

automationUuid   string   

The uuid of the automation. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

automation_uuid   string  optional  

The UUID of the automation. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string  optional  

The name of the automation. Example: Small Pests

description   string  optional  

The description of the automation. Example: Lorem ipsum dolor sit amet consectetur adipisicing elit

type   string  optional  

The type of the automation. Example: Lorem ipsum dolor sit amet consectetur adipisicing elit

actions   string[]  optional  

of object The actions of automation. Example : [{action: "SEND_EMAIL", value: ["john@smarterlaunch.com", "smith@smarterlaunch.com"], settings: {body: "Please follow-up with this and set an appointment."}}]

filters   string[]  optional  

of object The filters of automation. Example : [{type: "CUSTOMER",operator: "IS", value: "3245d630-24fd-11ec-accd-e397aec85c7f",}, {type: "USER",operator: "IS_ONE_OF", value: ["3245d630-24fd-11ec-accd-e397aec85c7f", "3245d630-24fd-11ec-accd-e397aec85c7h"]}]

triggers   string[]  optional  

of object The triggers of automation. Example : [{type: "CUSTOMER",operator: "IS_CHANGED_TO",value: "3245d630-24fd-11ec-accd-e397aec85c7f"}]

Delete

requires authentication

Remove the specified Automation.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/automations/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/automations/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/automations/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/automations/{automation_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

automation_uuid   string  optional  

The UUID of the automation. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Categories

Organize service plans and drawing symbols into categories (e.g., Rodent Control, Termite Treatment). Categories help structure service offerings and diagram symbols for better organization.

List

requires authentication

Shows the list of Categories with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/categories?page=6&page_size=17&sort_by=voluptates&sort_order=mollitia&search=eum&category_group=SERVICE_PLAN" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/categories';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '6',
            'page_size' => '17',
            'sort_by' => 'voluptates',
            'sort_order' => 'mollitia',
            'search' => 'eum',
            'category_group' => 'SERVICE_PLAN',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/categories"
);

const params = {
    "page": "6",
    "page_size": "17",
    "sort_by": "voluptates",
    "sort_order": "mollitia",
    "search": "eum",
    "category_group": "SERVICE_PLAN",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/categories

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

page   integer  optional  

optional The page number. Example: 6

page_size   integer  optional  

optional The number of record you want per page. Example: 17

sort_by   string  optional  

optional The column name. Example: voluptates

sort_order   string  optional  

optional The order in which you want your records. Example: mollitia

search   string  optional  

optional The general search, it will find matching string. Example: eum

category_group   string  optional  

optional The category group to filter by. Example: SERVICE_PLAN

Create

requires authentication

Store a newly created Category.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/categories" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Small Pests\",
    \"description\": \"Lorem ipsum dolor sit amet consectetur adipisicing elit\",
    \"category_group\": \"SERVICE_PLAN\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/categories';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Small Pests',
            'description' => 'Lorem ipsum dolor sit amet consectetur adipisicing elit',
            'category_group' => 'SERVICE_PLAN',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/categories"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Small Pests",
    "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit",
    "category_group": "SERVICE_PLAN"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/categories

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

The name of the category. Example: Small Pests

description   string  optional  

The description of the category. Example: Lorem ipsum dolor sit amet consectetur adipisicing elit

category_group   string   

The category_group of the category. ['SERVICE_PLAN']. Example: SERVICE_PLAN

Get

requires authentication

Display the specified Category.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/categories/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/categories/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/categories/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/categories/{category_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

category_uuid   string  optional  

The UUID of the category. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Update

requires authentication

Modify the specified Category.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/categories/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Small Pests\",
    \"description\": \"Lorem ipsum dolor sit amet consectetur adipisicing elit\",
    \"category_group\": \"DRAWING_SYMBOL\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/categories/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Small Pests',
            'description' => 'Lorem ipsum dolor sit amet consectetur adipisicing elit',
            'category_group' => 'DRAWING_SYMBOL',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/categories/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Small Pests",
    "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit",
    "category_group": "DRAWING_SYMBOL"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/categories/{category_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

category_uuid   string  optional  

The UUID of the category. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the category. Example: Small Pests

description   string  optional  

The description of the category. Example: Lorem ipsum dolor sit amet consectetur adipisicing elit

category_group   string  optional  

Example: DRAWING_SYMBOL

Must be one of:
  • SERVICE_PLAN
  • DRAWING_SYMBOL

Patch

requires authentication

Perform patches for the specified Category.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/categories/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Small Pests\",
    \"description\": \"Lorem ipsum dolor sit amet consectetur adipisicing elit\",
    \"category_group\": \"SERVICE_PLAN\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/categories/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Small Pests',
            'description' => 'Lorem ipsum dolor sit amet consectetur adipisicing elit',
            'category_group' => 'SERVICE_PLAN',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/categories/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Small Pests",
    "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit",
    "category_group": "SERVICE_PLAN"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/categories/{category_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

category_uuid   string  optional  

The UUID of the category. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string  optional  

The name of the category. Example: Small Pests

description   string  optional  

The description of the category. Example: Lorem ipsum dolor sit amet consectetur adipisicing elit

category_group   string  optional  

Example: SERVICE_PLAN

Must be one of:
  • SERVICE_PLAN
  • DRAWING_SYMBOL

Delete

requires authentication

Remove the specified Category.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/categories/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/categories/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/categories/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/categories/{category_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

category_uuid   string  optional  

The UUID of the category. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Company

Manage your company profile including business name, logo, contact information, branding settings, billing configuration, and company-wide preferences.

List / Fetch.

requires authentication

Shows the list of company or fetch single record using uuid.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

uuid   string  optional  

optional The company uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store company logo.

requires authentication

This endpoint lets company to upload or update their logo.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/image" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "image_url=@/tmp/phpBrBqXK" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/image';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'image_url',
                'contents' => fopen('/tmp/phpBrBqXK', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/image"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('image_url', document.querySelector('input[name="image_url"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/image

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

uuid   string   

The company uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

image_url   file   

The image file. Example: /tmp/phpBrBqXK

Update Company

requires authentication

This endpoint lets user to update a company.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Smarter Launch\",
    \"phone\": \"5554448888\",
    \"email\": \"hello@smarterlaunch.com\",
    \"address1\": \"\'123 Smarter Launch Way\'\",
    \"address2\": \"\'Suite 101\'\",
    \"city\": \"Queen Creek\",
    \"country_state_uuid\": \"ecd24580-2749-11ec-9b86-1102c06e74b4\",
    \"country_uuid\": \"ecd24580-2749-11ec-9b86-1102c06e74b4\",
    \"postal_code\": \"85410\",
    \"latitude\": \"23.0396\",
    \"longitude\": \"72.566\",
    \"primary_color\": \"#009CFF\",
    \"secondary_color\": \"#FFFFFF\",
    \"settings\": [],
    \"image_url\": \"http:\\/\\/emard.com\\/\",
    \"company_uuid\": \"ecd24580-2749-11ec-9b86-1102c06e74b4\",
    \"description\": \"We are helping take your business to the next level. Hop in!\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Smarter Launch',
            'phone' => '5554448888',
            'email' => 'hello@smarterlaunch.com',
            'address1' => '\'123 Smarter Launch Way\'',
            'address2' => '\'Suite 101\'',
            'city' => 'Queen Creek',
            'country_state_uuid' => 'ecd24580-2749-11ec-9b86-1102c06e74b4',
            'country_uuid' => 'ecd24580-2749-11ec-9b86-1102c06e74b4',
            'postal_code' => '85410',
            'latitude' => '23.0396',
            'longitude' => '72.566',
            'primary_color' => '#009CFF',
            'secondary_color' => '#FFFFFF',
            'settings' => [],
            'image_url' => 'http://emard.com/',
            'company_uuid' => 'ecd24580-2749-11ec-9b86-1102c06e74b4',
            'description' => 'We are helping take your business to the next level. Hop in!',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Smarter Launch",
    "phone": "5554448888",
    "email": "hello@smarterlaunch.com",
    "address1": "'123 Smarter Launch Way'",
    "address2": "'Suite 101'",
    "city": "Queen Creek",
    "country_state_uuid": "ecd24580-2749-11ec-9b86-1102c06e74b4",
    "country_uuid": "ecd24580-2749-11ec-9b86-1102c06e74b4",
    "postal_code": "85410",
    "latitude": "23.0396",
    "longitude": "72.566",
    "primary_color": "#009CFF",
    "secondary_color": "#FFFFFF",
    "settings": [],
    "image_url": "http:\/\/emard.com\/",
    "company_uuid": "ecd24580-2749-11ec-9b86-1102c06e74b4",
    "description": "We are helping take your business to the next level. Hop in!"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the company. Example: Smarter Launch

phone   string   

The last name of the company. Example: 5554448888

email   string   

The email of the company. Example: hello@smarterlaunch.com

address1   string   

The address of the company. Example: '123 Smarter Launch Way'

address2   string  optional  

optional The address of the company. Example: 'Suite 101'

city   string   

The company city name. Example: Queen Creek

country_state_uuid   string   

The company state uuid. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

country_uuid   string   

The company country uuid. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

postal_code   string  optional  

optional The postal code of the company. Example: 85410

latitude   string  optional  

optional The latitude of the company. Example: 23.0396

longitude   string  optional  

optional The longitude of the company. Example: 72.566

primary_color   string  optional  

optional The primary color. Example: #009CFF

secondary_color   string  optional  

optional The secondary color. Example: #FFFFFF

custom_settings   object  optional  
settings   object  optional  
available_integration_uuids   object  optional  
image_url   string  optional  

Example: http://emard.com/

company_uuid   string  optional  

optional The uuid of the company. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

description   string  optional  

optional The company description. Example: We are helping take your business to the next level. Hop in!

Patch Company

requires authentication

This endpoint lets user to update a company.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Smarter Launch\",
    \"phone\": \"5554448888\",
    \"email\": \"hello@smarterlaunch.com\",
    \"address1\": \"\'123 Smarter Launch Way\'\",
    \"address2\": \"\'Suite 101\'\",
    \"city\": \"Queen Creek\",
    \"country_state_uuid\": \"ecd24580-2749-11ec-9b86-1102c06e74b4\",
    \"country_uuid\": \"ecd24580-2749-11ec-9b86-1102c06e74b4\",
    \"postal_code\": \"85410\",
    \"latitude\": \"23.0396\",
    \"longitude\": \"72.566\",
    \"primary_color\": \"#009CFF\",
    \"secondary_color\": \"#FFFFFF\",
    \"settings\": [],
    \"website_url\": \"https:\\/\\/hagenes.com\\/sint-expedita-voluptas-fuga-beatae-at.html\",
    \"google_my_business_listing\": \"http:\\/\\/bartell.com\\/nulla-id-et-nisi\",
    \"image_url\": \"http:\\/\\/www.weimann.com\\/\",
    \"company_uuid\": \"ecd24580-2749-11ec-9b86-1102c06e74b4\",
    \"description\": \"We are helping take your business to the next level. Hop in!\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Smarter Launch',
            'phone' => '5554448888',
            'email' => 'hello@smarterlaunch.com',
            'address1' => '\'123 Smarter Launch Way\'',
            'address2' => '\'Suite 101\'',
            'city' => 'Queen Creek',
            'country_state_uuid' => 'ecd24580-2749-11ec-9b86-1102c06e74b4',
            'country_uuid' => 'ecd24580-2749-11ec-9b86-1102c06e74b4',
            'postal_code' => '85410',
            'latitude' => '23.0396',
            'longitude' => '72.566',
            'primary_color' => '#009CFF',
            'secondary_color' => '#FFFFFF',
            'settings' => [],
            'website_url' => 'https://hagenes.com/sint-expedita-voluptas-fuga-beatae-at.html',
            'google_my_business_listing' => 'http://bartell.com/nulla-id-et-nisi',
            'image_url' => 'http://www.weimann.com/',
            'company_uuid' => 'ecd24580-2749-11ec-9b86-1102c06e74b4',
            'description' => 'We are helping take your business to the next level. Hop in!',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Smarter Launch",
    "phone": "5554448888",
    "email": "hello@smarterlaunch.com",
    "address1": "'123 Smarter Launch Way'",
    "address2": "'Suite 101'",
    "city": "Queen Creek",
    "country_state_uuid": "ecd24580-2749-11ec-9b86-1102c06e74b4",
    "country_uuid": "ecd24580-2749-11ec-9b86-1102c06e74b4",
    "postal_code": "85410",
    "latitude": "23.0396",
    "longitude": "72.566",
    "primary_color": "#009CFF",
    "secondary_color": "#FFFFFF",
    "settings": [],
    "website_url": "https:\/\/hagenes.com\/sint-expedita-voluptas-fuga-beatae-at.html",
    "google_my_business_listing": "http:\/\/bartell.com\/nulla-id-et-nisi",
    "image_url": "http:\/\/www.weimann.com\/",
    "company_uuid": "ecd24580-2749-11ec-9b86-1102c06e74b4",
    "description": "We are helping take your business to the next level. Hop in!"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string  optional  

optional The name of the company. Example: Smarter Launch

phone   string  optional  

optional The last name of the company. Example: 5554448888

email   string  optional  

optional The email of the company. Example: hello@smarterlaunch.com

address1   string  optional  

optional The address of the company. Example: '123 Smarter Launch Way'

address2   string  optional  

optional The address of the company. Example: 'Suite 101'

city   string  optional  

optional The company city name. Example: Queen Creek

country_state_uuid   string  optional  

optional The company state uuid. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

country_uuid   string  optional  

optional The company country uuid. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

postal_code   string  optional  

optional The postal code of the company. Example: 85410

latitude   string  optional  

optional The latitude of the company. Example: 23.0396

longitude   string  optional  

optional The longitude of the company. Example: 72.566

primary_color   string  optional  

optional The primary color. Example: #009CFF

secondary_color   string  optional  

optional The secondary color. Example: #FFFFFF

custom_settings   object  optional  
settings   object  optional  
available_integration_uuids   object  optional  
website_url   string  optional  

Must be a valid URL. Example: https://hagenes.com/sint-expedita-voluptas-fuga-beatae-at.html

google_my_business_listing   string  optional  

Must be a valid URL. Example: http://bartell.com/nulla-id-et-nisi

image_url   string  optional  

Example: http://www.weimann.com/

company_uuid   string  optional  

optional The uuid of the company. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

description   string  optional  

optional The company description. Example: We are helping take your business to the next level. Hop in!

requires authentication

Only self can remove his logo.

Redirect to Stripe Billing Auth

requires authentication

This endpoint lets user to redirect to Stripe Billing Auth.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/billing" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/billing';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/billing"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/billing

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

uuid   string   

The company uuid. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Get settings JSON file URL

requires authentication

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/settings-json" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"settings_name\": \"repellendus\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/settings-json';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'settings_name' => 'repellendus',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/settings-json"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "settings_name": "repellendus"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/settings-json

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

uuid   string   

The company uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

settings_name   string   

The setting name Example: repellendus

POST Upload Base64 files to S3

requires authentication

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/upload-base64" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items\": null,
    \"deleteItems\": null
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/upload-base64';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items' => null,
            'deleteItems' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/upload-base64"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items": null,
    "deleteItems": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/upload-base64

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

items   string[]   

The array of {base64String, uuid} object.

deleteItems   string[]   

The array of uuid object.

PATCH api/v1/companies/{company_uuid}/update-limit/{entity}

requires authentication

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/update-limit/{entity}" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/update-limit/{entity}';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/update-limit/{entity}"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/update-limit/{entity}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Company Users

Invite and manage company users with location assignments. Handle user invitations, activation, role assignment, team membership, and company-specific user settings.

List

requires authentication

Shows the list of company users that the user has access to view.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/users?page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ignore_cached\": false,
    \"should_reset_cache\": true,
    \"page_size\": 15,
    \"sort_by\": \"display_name\",
    \"sort_order\": \"asc\",
    \"search\": \"John\",
    \"filter_by_status_code\": \"STATUS_ACTIVE \\/ [\\\"STATUS_ACTIVE\\\".\\\"STATUS_DISABLED\\\"]\",
    \"filter_by_role_code\": \"ROLE_COMPANY_MANAGER\",
    \"filter_by_company_location_uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/users';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
        ],
        'json' => [
            'ignore_cached' => false,
            'should_reset_cache' => true,
            'page_size' => 15,
            'sort_by' => 'display_name',
            'sort_order' => 'asc',
            'search' => 'John',
            'filter_by_status_code' => 'STATUS_ACTIVE / ["STATUS_ACTIVE"."STATUS_DISABLED"]',
            'filter_by_role_code' => 'ROLE_COMPANY_MANAGER',
            'filter_by_company_location_uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/users"
);

const params = {
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ignore_cached": false,
    "should_reset_cache": true,
    "page_size": 15,
    "sort_by": "display_name",
    "sort_order": "asc",
    "search": "John",
    "filter_by_status_code": "STATUS_ACTIVE \/ [\"STATUS_ACTIVE\".\"STATUS_DISABLED\"]",
    "filter_by_role_code": "ROLE_COMPANY_MANAGER",
    "filter_by_company_location_uuid": "3245d630-24fd-11ec-accd-e397aec85c7f"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/users

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

companyUuid   string   

The company uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 1

Body Parameters

include_fields   string[]  optional  
ignore_cached   boolean  optional  

Example: false

should_reset_cache   boolean  optional  

optional Resets the cache Example: true

page_size   integer  optional  

optional The number of records you want per page. Example: 15

sort_by   string  optional  

optional The column name. Example: display_name

sort_order   string  optional  

optional The order in which you want your records. Example: asc

search   string  optional  

optional The general search, it will find matching string. Example: John

filter_by_status_code   string/array  optional  

optional Filter results by user status. Example: STATUS_ACTIVE / ["STATUS_ACTIVE"."STATUS_DISABLED"]

filter_by_role_code   string  optional  

optional Filter results by user role. Example: ROLE_COMPANY_MANAGER

filter_by_company_location_uuid   string  optional  

uuid optional Filter results by company location uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

Show

requires authentication

Shows detail of a specific company user

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/users/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/users/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/users/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/users/{userOrUserInviteUuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Send invitation to user.

requires authentication

This endpoint lets company owner to send invite to its sub-user.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/users" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"first_name\": \"John\",
    \"email\": \"hello@smarterlaunch.com\",
    \"role_uuid\": \"45955590-4152-11ec-9c77-2181a8ee04db\",
    \"company_locations\": [],
    \"position\": \"l\",
    \"phone\": \"ybstkcqcbwawj\",
    \"last_name\": \"Smith\",
    \"company_locations[]\": \"[\\\"45955590-4152-11ec-9c77-2181a8ee04db\\\"]\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/users';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'first_name' => 'John',
            'email' => 'hello@smarterlaunch.com',
            'role_uuid' => '45955590-4152-11ec-9c77-2181a8ee04db',
            'company_locations' => [],
            'position' => 'l',
            'phone' => 'ybstkcqcbwawj',
            'last_name' => 'Smith',
            'company_locations[]' => '["45955590-4152-11ec-9c77-2181a8ee04db"]',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/users"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "first_name": "John",
    "email": "hello@smarterlaunch.com",
    "role_uuid": "45955590-4152-11ec-9c77-2181a8ee04db",
    "company_locations": [],
    "position": "l",
    "phone": "ybstkcqcbwawj",
    "last_name": "Smith",
    "company_locations[]": "[\"45955590-4152-11ec-9c77-2181a8ee04db\"]"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/users

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

first_name   string   

The first name of the user. Example: John

email   string   

The email of the user. Example: hello@smarterlaunch.com

role_uuid   string  optional  

uuid required The role uuid of the user. Example: 45955590-4152-11ec-9c77-2181a8ee04db

company_locations   object   
position   string  optional  

Must not be greater than 250 characters. Example: l

phone   string  optional  

Must be at least 10 characters. Must not be greater than 20 characters. Example: ybstkcqcbwawj

last_name   string   

The first name of the user. Example: Smith

company_locations[]   string  optional  

uuid of The company location. Example: ["45955590-4152-11ec-9c77-2181a8ee04db"]

Resend invitation to user.

requires authentication

This endpoint lets company owner to send invite to its sub-user.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/1/users/3245d630-24fd-11ec-accd-e397aec85c7f" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/1/users/3245d630-24fd-11ec-accd-e397aec85c7f';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/1/users/3245d630-24fd-11ec-accd-e397aec85c7f"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/users/{uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

uuid   string   

The invited user uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

Force activate user

requires authentication

This endpoint lets admin/super admin to activate user.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/1/users/1/activate" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/1/users/1/activate';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/1/users/1/activate"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/users/{userInviteUuid}/activate

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

uuid   string   

The invited user uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

Update

requires authentication

This endpoint lets the user update company user.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/users/{userUuid}" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"first_name\": \"John\",
    \"last_name\": \"Smith\",
    \"email\": \"hello@smarterlaunch.com\",
    \"role_uuid\": \"45955590-4152-11ec-9c77-2181a8ee04db\",
    \"company_locations\": [
        \"3245d630-24fd-11ec-accd-e397aec85c7f\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/users/{userUuid}';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'first_name' => 'John',
            'last_name' => 'Smith',
            'email' => 'hello@smarterlaunch.com',
            'role_uuid' => '45955590-4152-11ec-9c77-2181a8ee04db',
            'company_locations' => [
                '3245d630-24fd-11ec-accd-e397aec85c7f',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/users/{userUuid}"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "first_name": "John",
    "last_name": "Smith",
    "email": "hello@smarterlaunch.com",
    "role_uuid": "45955590-4152-11ec-9c77-2181a8ee04db",
    "company_locations": [
        "3245d630-24fd-11ec-accd-e397aec85c7f"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/users/{userUuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

first_name   string   

The first name of the user. Example: John

last_name   string   

The last name of the user. Example: Smith

email   string  optional  

optional The email of the user. Example: hello@smarterlaunch.com

role_uuid   string  optional  

uuid required The role uuid of the user. Example: 45955590-4152-11ec-9c77-2181a8ee04db

company_locations   object[]  optional  

array of uuid required The company location.

Patch

requires authentication

This endpoint lets the user patch company user.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/users/{userUuid}" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"first_name\": \"John\",
    \"last_name\": \"Smith\",
    \"role_uuid\": \"45955590-4152-11ec-9c77-2181a8ee04db\",
    \"company_locations\": [
        \"3245d630-24fd-11ec-accd-e397aec85c7f\"
    ],
    \"status_uuid\": \"2d4e8dbc-71a5-3f4c-81e3-1db2aaf7997c\",
    \"email\": \"hello@smarterlaunch.com\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/users/{userUuid}';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'first_name' => 'John',
            'last_name' => 'Smith',
            'role_uuid' => '45955590-4152-11ec-9c77-2181a8ee04db',
            'company_locations' => [
                '3245d630-24fd-11ec-accd-e397aec85c7f',
            ],
            'status_uuid' => '2d4e8dbc-71a5-3f4c-81e3-1db2aaf7997c',
            'email' => 'hello@smarterlaunch.com',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/users/{userUuid}"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "first_name": "John",
    "last_name": "Smith",
    "role_uuid": "45955590-4152-11ec-9c77-2181a8ee04db",
    "company_locations": [
        "3245d630-24fd-11ec-accd-e397aec85c7f"
    ],
    "status_uuid": "2d4e8dbc-71a5-3f4c-81e3-1db2aaf7997c",
    "email": "hello@smarterlaunch.com"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/users/{userUuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

first_name   string  optional  

optional The first name of the user. Example: John

last_name   string  optional  

optional The last name of the user. Example: Smith

role_uuid   string  optional  

uuid optional The role uuid of the user. Example: 45955590-4152-11ec-9c77-2181a8ee04db

company_locations   object[]  optional  

array of uuid optional The company location.

status_uuid   string  optional  

Must be a valid UUID. Example: 2d4e8dbc-71a5-3f4c-81e3-1db2aaf7997c

email   string  optional  

optional The email of the user. Example: hello@smarterlaunch.com

Delete

requires authentication

This endpoint allows owner to delete a user.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/users/3245d630-24fd-11ec-accd-e397aec85c7f" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/users/3245d630-24fd-11ec-accd-e397aec85c7f';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/users/3245d630-24fd-11ec-accd-e397aec85c7f"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/users/{userUuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userUuid   string   

The uuid of the company user to be removed. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

companyUuid   string   

The uuid of the company. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Countries

Retrieve available countries and states/provinces for address forms and geographic data. Used in customer and company location configuration.

List / Fetch

Shows the list of country or fetch single record using uuid.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/countries" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\",
    \"name\": \"baroda\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/countries';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
            'name' => 'baroda',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/countries"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "uuid": "3245d630-24fd-11ec-accd-e397aec85c7f",
    "name": "baroda"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/countries

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

uuid   string  optional  

optional The country uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

name   string  optional  

optional The country name. Example: baroda

List / Fetch

Shows the list of country or fetch single record using uuid.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/countries/{countryUuid}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\",
    \"name\": \"baroda\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/countries/{countryUuid}';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
            'name' => 'baroda',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/countries/{countryUuid}"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "uuid": "3245d630-24fd-11ec-accd-e397aec85c7f",
    "name": "baroda"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/countries/{countryUuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

uuid   string  optional  

optional The country uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

name   string  optional  

optional The country name. Example: baroda

Get country states using country uuid.

Shows the list of states using country uuid.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/countries/1/states" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/countries/1/states';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/countries/1/states"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/countries/{countryUuid}/states

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

country_uuid   string   

The country uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

Customer Addresses

Manage service addresses for customers. A single customer may have multiple properties requiring pest control services at different locations.

Update

requires authentication

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/customer-addresses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"addresses[]\": null,
    \"delete_addresses[]\": null
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/customer-addresses';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'addresses[]' => null,
            'delete_addresses[]' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/customer-addresses"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "addresses[]": null,
    "delete_addresses[]": null
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/customers/{customer_uuid}/customer-addresses

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

customer_uuid   string  optional  

The UUID of the customer. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

addresses[]   string[]  optional  

of addresses.

delete_addresses[]   string[]  optional  

of addresses.uuid to be deleted.

Patch

requires authentication

Patch Customer Address

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/customer-addresses/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"address1\": \"reiciendis\",
    \"address2\": \"ea\",
    \"city\": \"qui\",
    \"country_state_uuid\": \"6c8f24b1-3aae-3816-af80-5ca543447492\",
    \"country_uuid\": \"bc3ac834-2742-31db-badc-bd5f2622a927\",
    \"postal_code\": \"repudiandae\",
    \"latitude\": \"porro\",
    \"longitude\": \"unde\",
    \"is_primary\": \"ipsam\",
    \"settings\": \"commodi\",
    \"county\": \"suscipit\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/customer-addresses/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'address1' => 'reiciendis',
            'address2' => 'ea',
            'city' => 'qui',
            'country_state_uuid' => '6c8f24b1-3aae-3816-af80-5ca543447492',
            'country_uuid' => 'bc3ac834-2742-31db-badc-bd5f2622a927',
            'postal_code' => 'repudiandae',
            'latitude' => 'porro',
            'longitude' => 'unde',
            'is_primary' => 'ipsam',
            'settings' => 'commodi',
            'county' => 'suscipit',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/customer-addresses/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "address1": "reiciendis",
    "address2": "ea",
    "city": "qui",
    "country_state_uuid": "6c8f24b1-3aae-3816-af80-5ca543447492",
    "country_uuid": "bc3ac834-2742-31db-badc-bd5f2622a927",
    "postal_code": "repudiandae",
    "latitude": "porro",
    "longitude": "unde",
    "is_primary": "ipsam",
    "settings": "commodi",
    "county": "suscipit"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/customers/{customer_uuid}/customer-addresses/{customerAddress_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

customer_uuid   string  optional  

The UUID of the customer. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

customerAddress_uuid   string  optional  

The UUID of the customer_address. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

address1   string  optional  

optional The address 1. Example : Address 1 Example: reiciendis

address2   string  optional  

optional The address 2. Example : Address 2 Example: ea

city   string  optional  

optional The city. Example : Queen Creek Example: qui

country_state_uuid   string  optional  

optional The state uuid. Example : 3245d630-24fd-11ec-accd-e397aec85c7f Example: 6c8f24b1-3aae-3816-af80-5ca543447492

country_uuid   string  optional  

optional The country uuid. Example : 3245d630-24fd-11ec-accd-e397aec85c7f Example: bc3ac834-2742-31db-badc-bd5f2622a927

postal_code   string  optional  

optional The postal code. Example : 12345 Example: repudiandae

latitude   string  optional  

optional The latitude. Example : 33.2486 Example: porro

longitude   string  optional  

optional The longitude. Example : 111.6377 Example: unde

is_primary   string  optional  

optional The is_primary. Example : true Example: ipsam

settings   string  optional  

optional The settings. Example : {} Example: commodi

county   string  optional  

optional The county. Example : Pinal County Example: suscipit

integration_meta   object  optional  

Integration Data

requires authentication

Get data from a 3rd party API

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/customer-addresses/3fa85f64-5717-4562-b3fc-2c963f66afa6/integration-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"addresses[]\": null,
    \"delete_addresses[]\": null
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/customer-addresses/3fa85f64-5717-4562-b3fc-2c963f66afa6/integration-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'addresses[]' => null,
            'delete_addresses[]' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/customer-addresses/3fa85f64-5717-4562-b3fc-2c963f66afa6/integration-data"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "addresses[]": null,
    "delete_addresses[]": null
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/customers/{customer_uuid}/customer-addresses/{customerAddress_uuid}/integration-data

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

customer_uuid   string  optional  

The UUID of the customer. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

customerAddress_uuid   string  optional  

The UUID of the customer_address. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

addresses[]   string[]  optional  

of addresses.

delete_addresses[]   string[]  optional  

of addresses.uuid to be deleted.

Customer Contacts

Manage additional contact persons for customer accounts. Store phone numbers, emails, and contact preferences for multiple decision-makers at a property.

Update

requires authentication

Update customer contacts

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/customer-contacts" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"contacts[]\": null,
    \"delete_contacts[]\": null
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/customer-contacts';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'contacts[]' => null,
            'delete_contacts[]' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/customer-contacts"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "contacts[]": null,
    "delete_contacts[]": null
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/customers/{customer_uuid}/customer-contacts

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

customer_uuid   string  optional  

The UUID of the customer. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

contacts[]   string[]  optional  

of contacts.

delete_contacts[]   string[]  optional  

of contacts.uuid to be deleted.

Customers

Manage customer records including contact information, service addresses (multiple addresses per customer), billing details, referral source tracking, status, custom field data, and CRM integration metadata.

List

requires authentication

Shows the list of company customers that the user has access to view.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/customers?page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_size\": 15,
    \"sort_by\": \"display_name\",
    \"sort_order\": \"asc\",
    \"search\": \"John\",
    \"filter_by_company_location_uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\",
    \"filter_by_statuses_uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\",
    \"is_with_trashed\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/customers';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
        ],
        'json' => [
            'page_size' => 15,
            'sort_by' => 'display_name',
            'sort_order' => 'asc',
            'search' => 'John',
            'filter_by_company_location_uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
            'filter_by_statuses_uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
            'is_with_trashed' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/customers"
);

const params = {
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_size": 15,
    "sort_by": "display_name",
    "sort_order": "asc",
    "search": "John",
    "filter_by_company_location_uuid": "3245d630-24fd-11ec-accd-e397aec85c7f",
    "filter_by_statuses_uuid": "3245d630-24fd-11ec-accd-e397aec85c7f",
    "is_with_trashed": true
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/customers

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

page   integer  optional  

optional The page number. Example: 1

Body Parameters

page_size   integer  optional  

optional The number of records you want per page. Example: 15

sort_by   string  optional  

optional The column name. Example: display_name

sort_order   string  optional  

optional The order in which you want your records. Example: asc

search   string  optional  

optional The general search, it will find matching string. Example: John

filter_by_company_location_uuid   string  optional  

uuid optional Filter results by company location uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

filter_by_statuses_uuid   string  optional  

uuid optional Filter results by company location uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

is_with_trashed   boolean  optional  

Whether or not to include trashed customer, addresses and contacts. Example: true

Show

requires authentication

This endpoint returns detail of a certain customer.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/customers/{customer_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

customer_uuid   string  optional  

The UUID of the customer. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Create a new customer along with their primary contact and address

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/customers" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_location_uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\",
    \"account_name\": \"Smarter Launch LLC\",
    \"customer_contact\": [
        \"tempora\"
    ],
    \"customer_address\": [
        \"voluptatem\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/customers';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_location_uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
            'account_name' => 'Smarter Launch LLC',
            'customer_contact' => [
                'tempora',
            ],
            'customer_address' => [
                'voluptatem',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/customers"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "company_location_uuid": "3245d630-24fd-11ec-accd-e397aec85c7f",
    "account_name": "Smarter Launch LLC",
    "customer_contact": [
        "tempora"
    ],
    "customer_address": [
        "voluptatem"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/customers

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

company_location_uuid   uuid   

The company location UUID. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

account_name   string   

The account name. Example: Smarter Launch LLC

customer_contact   string[]   

The customer contacts

*   object  optional  
first_name   string   

The first name of the primary contact for the customer. Example: John

last_name   string   

The last name of the primary contact for the customer. Example: Smith

email   string   

The email address of the primary contact for the customer. Example: john.smith@smarterlaunch.com

phone   string   

The phone number of the primary contact for the customer. Example: 5554448888

customer_address   string[]   

The contact addresses

*   object  optional  
address1   string   

The address of the primary service address of the customer. Example: 123 Smarter Launch Way

address2   string  optional  

The extended address for the primary service address of the customer. Example: Suite 123

city   string   

The city for the primary service address of the customer. Example: Queen Creek

country_state_uuid   uuid   

The state UUID for the primary service address of the customer. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

postal_code   string   

The postal code for the primary service address of the customer. Example: 85140

country_uuid   uuid   

The country UUID for the primary service address of the customer. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

Update with contact and address

requires authentication

This is to update those partial customer data

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/with-contact-address" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_location_uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\",
    \"account_name\": \"Smarter Launch LLC\",
    \"customer_contact\": [
        \"natus\"
    ],
    \"customer_address\": [
        \"et\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/with-contact-address';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_location_uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
            'account_name' => 'Smarter Launch LLC',
            'customer_contact' => [
                'natus',
            ],
            'customer_address' => [
                'et',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/with-contact-address"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "company_location_uuid": "3245d630-24fd-11ec-accd-e397aec85c7f",
    "account_name": "Smarter Launch LLC",
    "customer_contact": [
        "natus"
    ],
    "customer_address": [
        "et"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/customers/{customer_uuid}/with-contact-address

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

customer_uuid   string  optional  

The UUID of the customer. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

company_location_uuid   uuid   

The company location UUID. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

account_name   string   

The account name. Example: Smarter Launch LLC

customer_contact   string[]   

The customer contacts

*   object  optional  
first_name   string   

The first name of the primary contact for the customer. Example: John

last_name   string   

The last name of the primary contact for the customer. Example: Smith

email   string   

The email address of the primary contact for the customer. Example: john.smith@smarterlaunch.com

phone   string   

The phone number of the primary contact for the customer. Example: 5554448888

customer_address   string[]   

The contact addresses

*   object  optional  
address1   string   

The address of the primary service address of the customer. Example: 123 Smarter Launch Way

address2   string  optional  

The extended address for the primary service address of the customer. Example: Suite 123

city   string   

The city for the primary service address of the customer. Example: Queen Creek

country_state_uuid   uuid   

The state UUID for the primary service address of the customer. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

postal_code   string   

The postal code for the primary service address of the customer. Example: 85140

country_uuid   uuid   

The country UUID for the primary service address of the customer. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

Update

requires authentication

Update individual customer account name and the location they are associated with.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_location_uuid\": \"3245d634-24fd-11ec-accd-e397aec85c7f\",
    \"account_name\": \"Smarter Launch LLC\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_location_uuid' => '3245d634-24fd-11ec-accd-e397aec85c7f',
            'account_name' => 'Smarter Launch LLC',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "company_location_uuid": "3245d634-24fd-11ec-accd-e397aec85c7f",
    "account_name": "Smarter Launch LLC"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/customers/{customer_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

customer_uuid   string  optional  

The UUID of the customer. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

company_location_uuid   uuid   

The UUID of the company location to associate the customer with. Example: 3245d634-24fd-11ec-accd-e397aec85c7f

account_name   string   

The account name. Example: Smarter Launch LLC

referral_source_uuid   string  optional  
include_fields   string  optional  

Patch

requires authentication

Patch individual customer account name and the location they are associated with.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_location_uuid\": \"3245d634-24fd-11ec-accd-e397aec85c7f\",
    \"account_name\": \"Smarter Launch LLC\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_location_uuid' => '3245d634-24fd-11ec-accd-e397aec85c7f',
            'account_name' => 'Smarter Launch LLC',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "company_location_uuid": "3245d634-24fd-11ec-accd-e397aec85c7f",
    "account_name": "Smarter Launch LLC"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/customers/{customer_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

customer_uuid   string  optional  

The UUID of the customer. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

company_location_uuid   uuid   

The UUID of the company location to associate the customer with. Example: 3245d634-24fd-11ec-accd-e397aec85c7f

account_name   string   

The account name. Example: Smarter Launch LLC

Delete

requires authentication

This end point allows user the delete the customer.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/customers/{customer_uuid}" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/customers/{customer_uuid}';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/customers/{customer_uuid}"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "uuid": "3245d630-24fd-11ec-accd-e397aec85c7f"
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/v1/customers/{customer_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

uuid   string   

The uuid of the customer. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

Sync

requires authentication

This endpoint allows user to perform manual sync to a customer

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/sync" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/sync';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/sync"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v1/customers/{customer_uuid}/sync

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

customer_uuid   string  optional  

The UUID of the customer. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Decline Reasons

Track reasons why customers decline proposals (price too high, went with competitor, not interested, etc.). Analyze decline data to improve sales processes and understand common objections.

List

requires authentication

Shows the list of decline reasons with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons?page=4&page_size=15&sort_by=quibusdam&sort_order=culpa&search=iusto" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '4',
            'page_size' => '15',
            'sort_by' => 'quibusdam',
            'sort_order' => 'culpa',
            'search' => 'iusto',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons"
);

const params = {
    "page": "4",
    "page_size": "15",
    "sort_by": "quibusdam",
    "sort_order": "culpa",
    "search": "iusto",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/decline-reasons

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 4

page_size   integer  optional  

optional The number of record you want per page. Example: 15

sort_by   string  optional  

optional The column name. Example: quibusdam

sort_order   string  optional  

optional The order in which you want your records. Example: culpa

search   string  optional  

optional The general search, it will find matching string. Example: iusto

Show

requires authentication

Show a single decline reason.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/decline-reasons/{declineReason_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

declineReason_uuid   string  optional  

The UUID of the decline_reason. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a newly created decline reasons.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"voluptatem\",
    \"description\": \"Lorem, ipsum dolor sit amet consectetur adipisicing elit.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'voluptatem',
            'description' => 'Lorem, ipsum dolor sit amet consectetur adipisicing elit.',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "voluptatem",
    "description": "Lorem, ipsum dolor sit amet consectetur adipisicing elit."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/decline-reasons

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

title   string   

The title of the decline reasons. Example : So Expensive Example: voluptatem

description   object  optional  

The description of the decline reasons. Example: Lorem, ipsum dolor sit amet consectetur adipisicing elit.

Update

requires authentication

Update a decline reason.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"alias\",
    \"description\": \"Lorem, ipsum dolor sit amet consectetur adipisicing elit.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'alias',
            'description' => 'Lorem, ipsum dolor sit amet consectetur adipisicing elit.',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "alias",
    "description": "Lorem, ipsum dolor sit amet consectetur adipisicing elit."
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/decline-reasons/{declineReason_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

declineReason_uuid   string  optional  

The UUID of the decline_reason. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

title   string   

The title of the decline reasons. Example : "So Expensive" Example: alias

description   object  optional  

The description of the decline reasons. Example: Lorem, ipsum dolor sit amet consectetur adipisicing elit.

Patch

requires authentication

Patch a company decline reason.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"assumenda\",
    \"description\": \"Lorem, ipsum dolor sit amet consectetur adipisicing elit.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'assumenda',
            'description' => 'Lorem, ipsum dolor sit amet consectetur adipisicing elit.',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "assumenda",
    "description": "Lorem, ipsum dolor sit amet consectetur adipisicing elit."
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/decline-reasons/{declineReason_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

declineReason_uuid   string  optional  

The UUID of the decline_reason. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

title   string   

The title of the decline reasons. Example : So Expensive Example: assumenda

description   object  optional  

The description of the decline reasons. Example: Lorem, ipsum dolor sit amet consectetur adipisicing elit.

Delete

requires authentication

Delete a decline reason.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline-reasons/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/decline-reasons/{declineReason_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

declineReason_uuid   string  optional  

The UUID of the decline_reason. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Description Sets

Create reusable description templates for services, proposals, and documents. Maintain consistent professional messaging across your sales and service materials.

List

requires authentication

Shows the list of description set with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets?page=2&page_size=10&sort_by=est&sort_order=molestiae&search=qui" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '2',
            'page_size' => '10',
            'sort_by' => 'est',
            'sort_order' => 'molestiae',
            'search' => 'qui',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets"
);

const params = {
    "page": "2",
    "page_size": "10",
    "sort_by": "est",
    "sort_order": "molestiae",
    "search": "qui",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/description-sets

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

exclude   string  optional  

array An array of UUID to exclude from the results. Example : ['3245d630-24fd-11ec-accd-e397aec85c7f'] Example: accusantium

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 2

page_size   integer  optional  

optional The number of record you want per page. Example: 10

sort_by   string  optional  

optional The column name. Example: est

sort_order   string  optional  

optional The order in which you want your records. Example: molestiae

search   string  optional  

optional The general search, it will find matching string. Example: qui

Show

requires authentication

Show a single description set.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/description-sets/{descriptionSet_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

descriptionSet_uuid   string  optional  

The UUID of the description_set. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a newly created description set.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"fugiat\",
    \"options\": [
        \"fuga\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'fugiat',
            'options' => [
                'fuga',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "fugiat",
    "options": [
        "fuga"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/description-sets

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the description set. Example : "Termite" Example: fugiat

options   string[]   

The options of the description set. Example : [{"title":"Termite","description":["description 1","description 2"]}]

Update

requires authentication

Update a description set.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"reprehenderit\",
    \"options\": [
        \"quia\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'reprehenderit',
            'options' => [
                'quia',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "reprehenderit",
    "options": [
        "quia"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/description-sets/{descriptionSet_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

descriptionSet_uuid   string  optional  

The UUID of the description_set. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the description set. Example : "Termite" Example: reprehenderit

options   string[]   

The options of the description set. Example : [{"title":"Termite","description":["description 1","description 2"]}]

Patch

requires authentication

Patch a company description set.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"molestiae\",
    \"options\": [
        \"quasi\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'molestiae',
            'options' => [
                'quasi',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "molestiae",
    "options": [
        "quasi"
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/description-sets/{descriptionSet_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

descriptionSet_uuid   string  optional  

The UUID of the description_set. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string  optional  

The name of the description set. Example : "Termite" Example: molestiae

options   string[]  optional  

The options of the description set. Example : [{"title":"Termite","description":["description 1","description 2"]}]

Delete

requires authentication

Delete a description set.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/description-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/description-sets/{descriptionSet_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

descriptionSet_uuid   string  optional  

The UUID of the description_set. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Field Groups

Create groups of custom fields to collect additional business-specific information on customers, proposals, or other records. Organize custom data collection into logical field sets.

List

requires authentication

Shows the list of company custom field groups with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups?page=16&page_size=10&sort_by=repellendus&sort_order=ad&search=molestiae" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '16',
            'page_size' => '10',
            'sort_by' => 'repellendus',
            'sort_order' => 'ad',
            'search' => 'molestiae',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups"
);

const params = {
    "page": "16",
    "page_size": "10",
    "sort_by": "repellendus",
    "sort_order": "ad",
    "search": "molestiae",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/custom-field-groups

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

with_trashed   string  optional  

boolean To display soft deleted data as well. Example : true Example: perferendis

assignment   string  optional  

To filter data by assignment. Example : CUSTOMER_ADDRESS Example: provident

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 16

page_size   integer  optional  

optional The number of record you want per page. Example: 10

sort_by   string  optional  

optional The column name. Example: repellendus

sort_order   string  optional  

optional The order in which you want your records. Example: ad

search   string  optional  

optional The general search, it will find matching string. Example: molestiae

Show

requires authentication

Show a single company custom field group.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/custom-field-groups/{companyCustomFieldGroup_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyCustomFieldGroup_uuid   string  optional  

The UUID of the company_custom_field_group. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a newly created company custom field group.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"qui\",
    \"assignment\": \"iure\",
    \"company_custom_fields\": [
        \"consequatur\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'qui',
            'assignment' => 'iure',
            'company_custom_fields' => [
                'consequatur',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "qui",
    "assignment": "iure",
    "company_custom_fields": [
        "consequatur"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/custom-field-groups

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the custom field group. Example : Additional Details Example: qui

assignment   enum  optional  

CUSTOMER|CUSTOMER_ADDRESS|MY_ACCOUNT|COMPANY|COMPANY_LOCATION required The assignment of the custom field group. Example : CUSTOMER Example: iure

company_custom_fields   string[]  optional  

of object required The company_custom_fields of the custom field group. Example : [{label: 'Address 3', input_type: 'TEXT}]

Update

requires authentication

Update a company custom field group.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"a\",
    \"assignment\": \"quaerat\",
    \"company_custom_fields\": [
        \"architecto\"
    ],
    \"deleted_custom_field_uuids\": [
        \"libero\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'a',
            'assignment' => 'quaerat',
            'company_custom_fields' => [
                'architecto',
            ],
            'deleted_custom_field_uuids' => [
                'libero',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "a",
    "assignment": "quaerat",
    "company_custom_fields": [
        "architecto"
    ],
    "deleted_custom_field_uuids": [
        "libero"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/custom-field-groups/{companyCustomFieldGroup_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

companyCustomFieldGroupUuid   string   

The uuid of the custom field group. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyCustomFieldGroup_uuid   string  optional  

The UUID of the company_custom_field_group. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the custom field group. Example : Additional Details Example: a

assignment   enum  optional  

CUSTOMER|CUSTOMER_ADDRESS|MY_ACCOUNT|COMPANY|COMPANY_LOCATION required The assignment of the custom field group. Example : CUSTOMER Example: quaerat

company_custom_fields   string[]  optional  

of object required The company_custom_fields of the custom field group. Example : [{label: 'Address 3', input_type: 'TEXT}]

deleted_custom_field_uuids   string[]  optional  

of uuid required The deleted_custom_field_uuids of the custom field group. Example : ["3245d630-24fd-11ec-accd-e397aec85c7f", "3245d630-24fd-11ec-accd-e397aec85c7f"]

Patch

requires authentication

Patch a company custom field group.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"et\",
    \"assignment\": \"doloribus\",
    \"company_custom_fields\": [
        \"tempora\"
    ],
    \"deleted_custom_field_uuids\": [
        \"deleniti\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'et',
            'assignment' => 'doloribus',
            'company_custom_fields' => [
                'tempora',
            ],
            'deleted_custom_field_uuids' => [
                'deleniti',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "et",
    "assignment": "doloribus",
    "company_custom_fields": [
        "tempora"
    ],
    "deleted_custom_field_uuids": [
        "deleniti"
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/custom-field-groups/{companyCustomFieldGroup_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

companyCustomFieldGroupUuid   string   

The uuid of the custom field group. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyCustomFieldGroup_uuid   string  optional  

The UUID of the company_custom_field_group. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the custom field group. Example : Additional Details Example: et

assignment   enum  optional  

CUSTOMER|CUSTOMER_ADDRESS|MY_ACCOUNT|COMPANY|COMPANY_LOCATION required The assignment of the custom field group. Example : CUSTOMER Example: doloribus

company_custom_fields   string[]  optional  

of object required The company_custom_fields of the custom field group. Example : [{label: 'Address 3', input_type: 'TEXT}]

deleted_custom_field_uuids   string[]  optional  

of uuid required The deleted_custom_field_uuids of the custom field group. Example : ["3245d630-24fd-11ec-accd-e397aec85c7f", "3245d630-24fd-11ec-accd-e397aec85c7f"]

Delete

requires authentication

Delete a company custom field group.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-field-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/custom-field-groups/{companyCustomFieldGroup_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyCustomFieldGroup_uuid   string  optional  

The UUID of the company_custom_field_group. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

File Upload

Generate pre-signed URLs for secure direct-to-S3 file uploads. Upload photos, documents, PDFs, and media without passing files through the API server.

POST Get S3 Pre-signed Url for Proposal Review

requires authentication

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/proposal-file-upload-presigned-url" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"signature_photo\": {
        \"full_path\": \"\\/test\\/signature.png\",
        \"md5_hash\": \"#hash#\",
        \"extension\": \"png\"
    },
    \"proposal_pdf\": {
        \"full_path\": \"\\/test\\/proposal.pdf\",
        \"md5_hash\": \"#hash#\",
        \"extension\": \"pdf\"
    }
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/proposal-file-upload-presigned-url';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'signature_photo' => [
                'full_path' => '/test/signature.png',
                'md5_hash' => '#hash#',
                'extension' => 'png',
            ],
            'proposal_pdf' => [
                'full_path' => '/test/proposal.pdf',
                'md5_hash' => '#hash#',
                'extension' => 'pdf',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/proposal-file-upload-presigned-url"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "signature_photo": {
        "full_path": "\/test\/signature.png",
        "md5_hash": "#hash#",
        "extension": "png"
    },
    "proposal_pdf": {
        "full_path": "\/test\/proposal.pdf",
        "md5_hash": "#hash#",
        "extension": "pdf"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/proposal-file-upload-presigned-url

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

signature_photo   object   

The signature image file object {"full_path": string, "md5_hash": string, "extension": string}.

proposal_pdf   object   

The pdf file object {"full_path": string, "md5_hash": string, "extension": string}.

POST Get S3 Pre-signed Url

requires authentication

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/file-upload-presigned-url" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items[]\": \"[{\\\"path\\\": \\\"\\/companies\\/{company-uuid}\\/\\\", \\\"extension\\\": \\\"jpg\\\"}]\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/file-upload-presigned-url';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items[]' => '[{"path": "/companies/{company-uuid}/", "extension": "jpg"}]',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/file-upload-presigned-url"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items[]": "[{\"path\": \"\/companies\/{company-uuid}\/\", \"extension\": \"jpg\"}]"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/file-upload-presigned-url

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

items[]   $items  optional  

An array of ['path' => string, 'extension' => string, 'md5_hash' => string, 'is_full_path' => boolean]. Example: [{"path": "/companies/{company-uuid}/", "extension": "jpg"}]

POST Get S3 Pre-signed Url

requires authentication

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/file-upload-presigned-url" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"items[]\": \"[{\\\"path\\\": \\\"\\/companies\\/{company-uuid}\\/\\\", \\\"extension\\\": \\\"jpg\\\"}]\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/file-upload-presigned-url';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'items[]' => '[{"path": "/companies/{company-uuid}/", "extension": "jpg"}]',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/file-upload-presigned-url"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "items[]": "[{\"path\": \"\/companies\/{company-uuid}\/\", \"extension\": \"jpg\"}]"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/file-upload-presigned-url

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

items[]   $items  optional  

An array of ['path' => string, 'extension' => string, 'md5_hash' => string, 'is_full_path' => boolean]. Example: [{"path": "/companies/{company-uuid}/", "extension": "jpg"}]

POST api/v1/upload-from-url

requires authentication

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/upload-from-url" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"url\": \"http:\\/\\/www.wyman.com\\/excepturi-ducimus-tempore-dicta-aliquid-est\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/upload-from-url';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'url' => 'http://www.wyman.com/excepturi-ducimus-tempore-dicta-aliquid-est',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/upload-from-url"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "url": "http:\/\/www.wyman.com\/excepturi-ducimus-tempore-dicta-aliquid-est"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/upload-from-url

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

url   string   

Must be a valid URL. Example: http://www.wyman.com/excepturi-ducimus-tempore-dicta-aliquid-est

Files

Upload and manage company files and attachments. Store documents that can be referenced in proposals, emails, and customer communications.

Store

requires authentication

Upload a file into a company

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/files" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=magni"\
    --form "description=Fugiat saepe omnis ratione et."\
    --form "directory=proposal-template"\
    --form "type=document"\
    --form "fileUpload=@/tmp/phpe2v80L" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/files';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'name',
                'contents' => 'magni'
            ],
            [
                'name' => 'description',
                'contents' => 'Fugiat saepe omnis ratione et.'
            ],
            [
                'name' => 'directory',
                'contents' => 'proposal-template'
            ],
            [
                'name' => 'type',
                'contents' => 'document'
            ],
            [
                'name' => 'fileUpload',
                'contents' => fopen('/tmp/phpe2v80L', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/files"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('name', 'magni');
body.append('description', 'Fugiat saepe omnis ratione et.');
body.append('directory', 'proposal-template');
body.append('type', 'document');
body.append('fileUpload', document.querySelector('input[name="fileUpload"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/files

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string  optional  

The name of the file. Example : MyFile.txt Example: magni

description   string  optional  

The description of the file. Example : This is a sample description for uploaded file Example: Fugiat saepe omnis ratione et.

directory   string   

The directory where the file will be located. Example: proposal-template

type   string   

The type of the file (in: image, document). Example: document

fileUpload   file   

The file to be uploaded. Example: /tmp/phpe2v80L

Delete

requires authentication

Delete a file from a company

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/files" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"file_url\": \"http:\\/\\/www.bartell.com\\/tempore-voluptatem-quasi-quia-perspiciatis-illum-harum.html\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/files';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'file_url' => 'http://www.bartell.com/tempore-voluptatem-quasi-quia-perspiciatis-illum-harum.html',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/files"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "file_url": "http:\/\/www.bartell.com\/tempore-voluptatem-quasi-quia-perspiciatis-illum-harum.html"
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/files

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

file_url   string  optional  

or array The url of the file. Example : MyFile.txt Example: http://www.bartell.com/tempore-voluptatem-quasi-quia-perspiciatis-illum-harum.html

Form Fields

Define individual fields (text, dropdown, checkbox, date, etc.) that make up custom forms. Configure field validation rules, options, and display settings.

List

requires authentication

Shows the list of form fields with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields?page=18&page_size=11&sort_by=quia&sort_order=sit&search=praesentium" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '18',
            'page_size' => '11',
            'sort_by' => 'quia',
            'sort_order' => 'sit',
            'search' => 'praesentium',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields"
);

const params = {
    "page": "18",
    "page_size": "11",
    "sort_by": "quia",
    "sort_order": "sit",
    "search": "praesentium",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/forms/{form_uuid}/fields

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

form_uuid   string  optional  

The UUID of the form. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 18

page_size   integer  optional  

optional The number of record you want per page. Example: 11

sort_by   string  optional  

optional The column name. Example: quia

sort_order   string  optional  

optional The order in which you want your records. Example: sit

search   string  optional  

optional The general search, it will find matching string. Example: praesentium

Show

requires authentication

Show a single form field.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/forms/{form_uuid}/fields/{formField_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

form_uuid   string  optional  

The UUID of the form. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

formField_uuid   string  optional  

The UUID of the form_field. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a newly created formField.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"label\": \"hic\",
    \"input_type\": \"quis\",
    \"default_value\": \"similique\",
    \"is_required\": true,
    \"is_conditional\": true,
    \"has_help_guide\": false,
    \"conditional_value\": \"ut\",
    \"help_guide\": \"est\",
    \"position\": 17
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'label' => 'hic',
            'input_type' => 'quis',
            'default_value' => 'similique',
            'is_required' => true,
            'is_conditional' => true,
            'has_help_guide' => false,
            'conditional_value' => 'ut',
            'help_guide' => 'est',
            'position' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "label": "hic",
    "input_type": "quis",
    "default_value": "similique",
    "is_required": true,
    "is_conditional": true,
    "has_help_guide": false,
    "conditional_value": "ut",
    "help_guide": "est",
    "position": 17
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/forms/{form_uuid}/fields

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

form_uuid   string  optional  

The UUID of the form. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

label   string   

The label of the form field. Example : "Are you satisfied with the communication from our technician?" Example: hic

input_type   string   

The label of the form field. Example : "MULTI_SELECT" Example: quis

default_value   string  optional  

The label of the form field. Example : "[1,2,3,4,5]" Example: similique

is_required   boolean  optional  

The label of the form field. Example : true Example: true

is_conditional   boolean  optional  

The label of the form field. Example : true Example: true

has_help_guide   boolean  optional  

The label of the form field. Example : true Example: false

conditional_value   text  optional  

The label of the form field. Example : {"condition1":"condition"} Example: ut

help_guide   string  optional  

text The label of the form field. Example : "This a help guide for communication from our technicians." Example: est

position   integer  optional  

The position of the form field. Example : 1 Example: 17

Update

requires authentication

Update a formfield.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"label\": \"voluptatibus\",
    \"input_type\": \"adipisci\",
    \"default_value\": \"aut\",
    \"is_required\": true,
    \"is_conditional\": false,
    \"has_help_guide\": true,
    \"conditional_value\": \"sit\",
    \"help_guide\": \"eos\",
    \"position\": 12
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'label' => 'voluptatibus',
            'input_type' => 'adipisci',
            'default_value' => 'aut',
            'is_required' => true,
            'is_conditional' => false,
            'has_help_guide' => true,
            'conditional_value' => 'sit',
            'help_guide' => 'eos',
            'position' => 12,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "label": "voluptatibus",
    "input_type": "adipisci",
    "default_value": "aut",
    "is_required": true,
    "is_conditional": false,
    "has_help_guide": true,
    "conditional_value": "sit",
    "help_guide": "eos",
    "position": 12
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/forms/{form_uuid}/fields/{formField_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

form_uuid   string  optional  

The UUID of the form. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

formField_uuid   string  optional  

The UUID of the form_field. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

label   string   

The label of the form field. Example : "Are you satisfied with the communication from our technician?" Example: voluptatibus

input_type   string   

The label of the form field. Example : "MULTI_SELECT" Example: adipisci

default_value   string  optional  

The label of the form field. Example : "[1,2,3,4,5]" Example: aut

is_required   boolean  optional  

The label of the form field. Example : true Example: true

is_conditional   boolean  optional  

The label of the form field. Example : true Example: false

has_help_guide   boolean  optional  

The label of the form field. Example : true Example: true

conditional_value   text  optional  

The label of the form field. Example : {"condition1":"condition"} Example: sit

help_guide   string  optional  

text The label of the form field. Example : "This a help guide for communication from our technicians." Example: eos

position   integer  optional  

The position of the form field. Example : 1 Example: 12

Update

requires authentication

Update a formfield.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"label\": \"eum\",
    \"input_type\": \"ea\",
    \"default_value\": \"est\",
    \"is_required\": true,
    \"is_conditional\": false,
    \"has_help_guide\": false,
    \"conditional_value\": \"ex\",
    \"help_guide\": \"magnam\",
    \"position\": 13
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'label' => 'eum',
            'input_type' => 'ea',
            'default_value' => 'est',
            'is_required' => true,
            'is_conditional' => false,
            'has_help_guide' => false,
            'conditional_value' => 'ex',
            'help_guide' => 'magnam',
            'position' => 13,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "label": "eum",
    "input_type": "ea",
    "default_value": "est",
    "is_required": true,
    "is_conditional": false,
    "has_help_guide": false,
    "conditional_value": "ex",
    "help_guide": "magnam",
    "position": 13
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/forms/{form_uuid}/fields/{formField_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

form_uuid   string  optional  

The UUID of the form. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

formField_uuid   string  optional  

The UUID of the form_field. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

label   string   

The label of the form field. Example : "Are you satisfied with the communication from our technician?" Example: eum

input_type   string   

The label of the form field. Example : "MULTI_SELECT" Example: ea

default_value   string  optional  

The label of the form field. Example : "[1,2,3,4,5]" Example: est

is_required   boolean  optional  

The label of the form field. Example : true Example: true

is_conditional   boolean  optional  

The label of the form field. Example : true Example: false

has_help_guide   boolean  optional  

The label of the form field. Example : true Example: false

conditional_value   text  optional  

The label of the form field. Example : {"condition1":"condition"} Example: ex

help_guide   string  optional  

text The label of the form field. Example : "This a help guide for communication from our technicians." Example: magnam

position   integer  optional  

The position of the form field. Example : 1 Example: 13

Patch

requires authentication

Patch a company form field.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"label\": \"nobis\",
    \"input_type\": \"est\",
    \"default_value\": \"modi\",
    \"is_required\": false,
    \"is_conditional\": true,
    \"has_help_guide\": true,
    \"conditional_value\": \"enim\",
    \"help_guide\": \"reiciendis\",
    \"position\": 15
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'label' => 'nobis',
            'input_type' => 'est',
            'default_value' => 'modi',
            'is_required' => false,
            'is_conditional' => true,
            'has_help_guide' => true,
            'conditional_value' => 'enim',
            'help_guide' => 'reiciendis',
            'position' => 15,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "label": "nobis",
    "input_type": "est",
    "default_value": "modi",
    "is_required": false,
    "is_conditional": true,
    "has_help_guide": true,
    "conditional_value": "enim",
    "help_guide": "reiciendis",
    "position": 15
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/forms/{form_uuid}/fields/{formField_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

form_uuid   string  optional  

The UUID of the form. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

formField_uuid   string  optional  

The UUID of the form_field. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

label   string  optional  

The label of the form field. Example : "Are you satisfied with the communication from our technician?" Example: nobis

input_type   string  optional  

The label of the form field. Example : "MULTI_SELECT" Example: est

default_value   string  optional  

The label of the form field. Example : "[1,2,3,4,5]" Example: modi

is_required   boolean  optional  

The label of the form field. Example : true Example: false

is_conditional   boolean  optional  

The label of the form field. Example : true Example: true

has_help_guide   boolean  optional  

The label of the form field. Example : true Example: true

conditional_value   text  optional  

The label of the form field. Example : {"condition1":"condition"} Example: enim

help_guide   string  optional  

text The label of the form field. Example : "This a help guide for communication from our technicians." Example: reiciendis

position   integer  optional  

The position of the form field. Example : 1 Example: 15

Delete

requires authentication

Delete a form field.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/fields/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/forms/{form_uuid}/fields/{formField_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

form_uuid   string  optional  

The UUID of the form. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

formField_uuid   string  optional  

The UUID of the form_field. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Forms

Build custom data collection forms with form fields and assignments. Forms can be attached to proposals for customer completion or used during service delivery to collect business-specific information.

List

requires authentication

Shows the list of form with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms?page=1&page_size=9&sort_by=in&sort_order=iusto&search=ab" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'page_size' => '9',
            'sort_by' => 'in',
            'sort_order' => 'iusto',
            'search' => 'ab',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms"
);

const params = {
    "page": "1",
    "page_size": "9",
    "sort_by": "in",
    "sort_order": "iusto",
    "search": "ab",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/forms

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 1

page_size   integer  optional  

optional The number of record you want per page. Example: 9

sort_by   string  optional  

optional The column name. Example: in

sort_order   string  optional  

optional The order in which you want your records. Example: iusto

search   string  optional  

optional The general search, it will find matching string. Example: ab

Get form types

requires authentication

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/form-types" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/form-types';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/form-types"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/form-types

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Show

requires authentication

Show a single form.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/forms/{form_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

form_uuid   string  optional  

The UUID of the form. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a newly created form.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"libero\",
    \"assignment\": \"deserunt\",
    \"form_fields\": [
        \"ut\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'libero',
            'assignment' => 'deserunt',
            'form_fields' => [
                'ut',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "libero",
    "assignment": "deserunt",
    "form_fields": [
        "ut"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/forms

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the form. Example : "My form" Example: libero

assignment   string   

The terms of the form ("QUALITY_ASSURANCE", "SERVICE_PLANS", "PROPOSAL_TEMPLATES"). Example : "QUALITY_ASSURANCE" Example: deserunt

form_fields   string[]  optional  

The list of form field data.

*   object  optional  
label   string  optional  

The label of a form field. Example : "Form Field 1" Example: eum

input_type   string  optional  

The input_type of a form field ('TEXT,NUMBER,TEXT_EDITOR,SELECT,MULTI_SELECT,CHECKBOX,DATE'). Example : "MULTI_SELECT" Example: delectus

default_value   string  optional  

The default value of the form field. Example : "Yes\n No" Example: exercitationem

is_required   boolean  optional  

The indicator if form field is required. Example : true Example: false

is_conditional   boolean  optional  

The indicator if form field is conditional. Example : true Example: false

has_help_guide   boolean  optional  

The indicator if form field has a help guide. Example : true Example: true

conditional_value   object  optional  

A json of conditional_value of the form fiel. Example : {"conditional_value":{"form_field_id":123,"operator":"HAS_NO_VALUE"}}

help_guide   string  optional  

The help guide of the form fiel. Example : "This field is to select Yes or No" Example: omnis

position   integer  optional  

A position of the form fiel. Example : 1 Example: 3

Duplicate

requires authentication

Duplicate form

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/duplicate" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/duplicate';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6/duplicate"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/forms/{form_uuid}/duplicate

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

form_uuid   string  optional  

The UUID of the form. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Update

requires authentication

Update a form.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"adipisci\",
    \"assignment\": \"cupiditate\",
    \"form_fields\": [
        \"soluta\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'adipisci',
            'assignment' => 'cupiditate',
            'form_fields' => [
                'soluta',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "adipisci",
    "assignment": "cupiditate",
    "form_fields": [
        "soluta"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/forms/{form_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

form_uuid   string  optional  

The UUID of the form. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the form. Example : "My Edited Form" Example: adipisci

assignment   string   

The terms of the form ("QUALITY_ASSURANCE", "SERVICE_PLANS", "PROPOSAL_TEMPLATES"). Example : "QUALITY_ASSURANCE" Example: cupiditate

form_fields   string[]  optional  

The list of form field data.

*   object  optional  
label   string  optional  

The label of a form field. Example : "Form Field 1" Example: quam

input_type   string  optional  

The input_type of a form field ('TEXT,NUMBER,TEXT_EDITOR,SELECT,MULTI_SELECT,CHECKBOX,DATE'). Example : "MULTI_SELECT" Example: et

default_value   string  optional  

The default value of the form field. Example : "Yes\n No" Example: quo

is_required   boolean  optional  

The indicator if form field is required. Example : true Example: false

is_conditional   boolean  optional  

The indicator if form field is conditional. Example : true Example: false

has_help_guide   boolean  optional  

The indicator if form field has a help guide. Example : true Example: true

conditional_value   object  optional  

A json of conditional_value of the form field. Example : {"conditional_value":{"form_field_id":123,"operator":"HAS_NO_VALUE"}}

help_guide   string  optional  

The help guide of the form field. Example : "This field is to select Yes or No" Example: sed

position   integer  optional  

A position of the form field. Example : 1 Example: 17

Update

requires authentication

Update a form.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"autem\",
    \"assignment\": \"est\",
    \"form_fields\": [
        \"hic\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'autem',
            'assignment' => 'est',
            'form_fields' => [
                'hic',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "autem",
    "assignment": "est",
    "form_fields": [
        "hic"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/forms/{form_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

form_uuid   string  optional  

The UUID of the form. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the form. Example : "My Edited Form" Example: autem

assignment   string   

The terms of the form ("QUALITY_ASSURANCE", "SERVICE_PLANS", "PROPOSAL_TEMPLATES"). Example : "QUALITY_ASSURANCE" Example: est

form_fields   string[]  optional  

The list of form field data.

*   object  optional  
label   string  optional  

The label of a form field. Example : "Form Field 1" Example: sed

input_type   string  optional  

The input_type of a form field ('TEXT,NUMBER,TEXT_EDITOR,SELECT,MULTI_SELECT,CHECKBOX,DATE'). Example : "MULTI_SELECT" Example: sapiente

default_value   string  optional  

The default value of the form field. Example : "Yes\n No" Example: est

is_required   boolean  optional  

The indicator if form field is required. Example : true Example: true

is_conditional   boolean  optional  

The indicator if form field is conditional. Example : true Example: false

has_help_guide   boolean  optional  

The indicator if form field has a help guide. Example : true Example: false

conditional_value   object  optional  

A json of conditional_value of the form field. Example : {"conditional_value":{"form_field_id":123,"operator":"HAS_NO_VALUE"}}

help_guide   string  optional  

The help guide of the form field. Example : "This field is to select Yes or No" Example: eum

position   integer  optional  

A position of the form field. Example : 1 Example: 11

Patch

requires authentication

Patch a company form.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"quos\",
    \"assignment\": \"recusandae\",
    \"form_fields\": [
        \"voluptas\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'quos',
            'assignment' => 'recusandae',
            'form_fields' => [
                'voluptas',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "quos",
    "assignment": "recusandae",
    "form_fields": [
        "voluptas"
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/forms/{form_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

form_uuid   string  optional  

The UUID of the form. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string  optional  

The name of the form. Example : "My Patched Form" Example: quos

assignment   string  optional  

The terms of the form ("QUALITY_ASSURANCE", "SERVICE_PLANS", "PROPOSAL_TEMPLATES"). Example : "QUALITY_ASSURANCE" Example: recusandae

form_fields   string[]  optional  

The list of form field data.

*   object  optional  
label   string  optional  

The label of a form field. Example : "Form Field 1" Example: est

input_type   string  optional  

The input_type of a form field ('TEXT,NUMBER,TEXT_EDITOR,SELECT,MULTI_SELECT,CHECKBOX,DATE'). Example : "MULTI_SELECT" Example: est

default_value   string  optional  

The default value of the form field. Example : "Yes\n No" Example: nihil

is_required   boolean  optional  

The indicator if form field is required. Example : true Example: false

is_conditional   boolean  optional  

The indicator if form field is conditional. Example : true Example: false

has_help_guide   boolean  optional  

The indicator if form field has a help guide. Example : true Example: true

conditional_value   object  optional  

A json of conditional_value of the form field. Example : {"conditional_value":{"form_field_id":123,"operator":"HAS_NO_VALUE"}}

help_guide   string  optional  

The help guide of the form field. Example : "This field is to select Yes or No" Example: ad

position   integer  optional  

A position of the form field. Example : 1 Example: 9

Delete

requires authentication

Delete a form.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/forms/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/forms/{form_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

form_uuid   string  optional  

The UUID of the form. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Import Sets

Manage bulk data import jobs for migrating customers, service plans, line items, and other records from external systems or CSV files.

Apply Import Set to Company

requires authentication

Store a newly created import set.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/import-defaults" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"tags\": [
        \"eaque\"
    ],
    \"import_files\": \"dicta\",
    \"override\": false,
    \"admin_only\": false
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/import-defaults';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'tags' => [
                'eaque',
            ],
            'import_files' => 'dicta',
            'override' => false,
            'admin_only' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/import-defaults"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "tags": [
        "eaque"
    ],
    "import_files": "dicta",
    "override": false,
    "admin_only": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/import-defaults

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

tags   string[]   

The array of tags to be associated in an import set. Example : ["Pest Control", "Arizona"]

import_files   files   

The set of json files containing import settings data. Example: dicta

override   boolean   

Determine if the import set will replace the current ones with matchinig names. Example : false Example: false

admin_only   boolean   

Determine if the import set is only accessible by admin. Example : true Example: false

Apply Import Set to Company

requires authentication

Store a newly created import set.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/import-defaults/upload" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"tags\": [
        \"aut\"
    ],
    \"import_files\": \"vitae\",
    \"override\": true,
    \"admin_only\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/import-defaults/upload';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'tags' => [
                'aut',
            ],
            'import_files' => 'vitae',
            'override' => true,
            'admin_only' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/import-defaults/upload"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "tags": [
        "aut"
    ],
    "import_files": "vitae",
    "override": true,
    "admin_only": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/import-defaults/upload

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

tags   string[]   

The array of tags to be associated in an import set. Example : ["Pest Control", "Arizona"]

import_files   files   

The set of json files containing import settings data. Example: vitae

override   boolean   

Determine if the import set will replace the current ones with matchinig names. Example : false Example: true

admin_only   boolean   

Determine if the import set is only accessible by admin. Example : true Example: true

List

requires authentication

Shows the list of import set with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/import-sets?page=1&page_size=17&sort_by=alias&sort_order=pariatur&search=voluptatibus" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/import-sets';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'page_size' => '17',
            'sort_by' => 'alias',
            'sort_order' => 'pariatur',
            'search' => 'voluptatibus',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/import-sets"
);

const params = {
    "page": "1",
    "page_size": "17",
    "sort_by": "alias",
    "sort_order": "pariatur",
    "search": "voluptatibus",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/import-sets

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

type_name   string  optional  

Filter by import type name : "Categories" Example: tempora

type_code   string  optional  

Filter by import type name : "categories" Example: voluptatem

Query Parameters

page   integer  optional  

optional The page number. Example: 1

page_size   integer  optional  

optional The number of record you want per page. Example: 17

sort_by   string  optional  

optional The column name. Example: alias

sort_order   string  optional  

optional The order in which you want your records. Example: pariatur

search   string  optional  

optional The general search, it will find matching string. Example: voluptatibus

Body Parameters

type_name   string  optional  
type_code   string  optional  

Show

requires authentication

Show a single import set.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/import-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/import-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/import-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/import-sets/{importSet_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

importSet_uuid   string  optional  

The UUID of the import_set. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Download

requires authentication

Download a single import set.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/import-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6/download" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/import-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6/download';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/import-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6/download"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/import-sets/{importSet_uuid}/download

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

importSet_uuid   string  optional  

The UUID of the import_set. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a newly created import set.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/import-sets" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"tags\": [
        \"esse\"
    ],
    \"import_files\": \"voluptas\",
    \"override\": true,
    \"admin_only\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/import-sets';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'tags' => [
                'esse',
            ],
            'import_files' => 'voluptas',
            'override' => true,
            'admin_only' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/import-sets"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "tags": [
        "esse"
    ],
    "import_files": "voluptas",
    "override": true,
    "admin_only": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/import-sets

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

tags   string[]   

The array of tags to be associated in an import set. Example : ["Pest Control", "Arizona"]

import_files   files   

The set of json files containing import settings data. Example: voluptas

override   boolean   

Determine if the import set will replace the current ones with matchinig names. Example : false Example: true

admin_only   boolean   

Determine if the import set is only accessible by admin. Example : true Example: true

Update

requires authentication

Update a import set.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/import-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"import_files\": \"at\",
    \"admin_only\": false,
    \"is_selected\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/import-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'import_files' => 'at',
            'admin_only' => false,
            'is_selected' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/import-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "import_files": "at",
    "admin_only": false,
    "is_selected": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/import-sets/{importSet_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

importSet_uuid   string  optional  

The UUID of the import_set. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

import_files   files   

The set of json files containing import settings data. Example: at

admin_only   boolean   

Determine if the import set is only accessible by admin. Example : true Example: false

is_selected   boolean   

Determine if the import set will be automatically selected when popping the dialog. Example : true Example: true

Update the specified resource in storage.

requires authentication

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/import-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"admin_only\": false,
    \"is_selected\": false
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/import-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'admin_only' => false,
            'is_selected' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/import-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "admin_only": false,
    "is_selected": false
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/import-sets/{importSet_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

importSet_uuid   string  optional  

The UUID of the import_set. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

admin_only   boolean   

Determine if the import set is only accessible by admin. Example : true Example: false

is_selected   boolean   

Determine if the import set will be automatically selected when popping the dialog. Example : true Example: false

Delete

requires authentication

Delete a import set.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/import-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/import-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/import-sets/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/import-sets/{importSet_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

importSet_uuid   string  optional  

The UUID of the import_set. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

List Forms

requires authentication

Shows the list of import set with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/form-import-sets?page=8&page_size=16&sort_by=nesciunt&sort_order=qui&search=minima" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/form-import-sets';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '8',
            'page_size' => '16',
            'sort_by' => 'nesciunt',
            'sort_order' => 'qui',
            'search' => 'minima',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/form-import-sets"
);

const params = {
    "page": "8",
    "page_size": "16",
    "sort_by": "nesciunt",
    "sort_order": "qui",
    "search": "minima",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/form-import-sets

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

page   integer  optional  

optional The page number. Example: 8

page_size   integer  optional  

optional The number of record you want per page. Example: 16

sort_by   string  optional  

optional The column name. Example: nesciunt

sort_order   string  optional  

optional The order in which you want your records. Example: qui

search   string  optional  

optional The general search, it will find matching string. Example: minima

Apply Import Set to Company

requires authentication

Store a newly created import set.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/form-import-sets" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"tags\": [
        \"possimus\"
    ],
    \"import_files\": \"accusantium\",
    \"override\": false,
    \"admin_only\": false
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/form-import-sets';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'tags' => [
                'possimus',
            ],
            'import_files' => 'accusantium',
            'override' => false,
            'admin_only' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/form-import-sets"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "tags": [
        "possimus"
    ],
    "import_files": "accusantium",
    "override": false,
    "admin_only": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/form-import-sets

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

tags   string[]   

The array of tags to be associated in an import set. Example : ["Pest Control", "Arizona"]

import_files   files   

The set of json files containing import settings data. Example: accusantium

override   boolean   

Determine if the import set will replace the current ones with matchinig names. Example : false Example: false

admin_only   boolean   

Determine if the import set is only accessible by admin. Example : true Example: false

Import Types

View available import types and data formats supported for bulk data migration (customers, service plans, line items, categories, etc.).

List

requires authentication

Shows the list of tags with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/import-types?page=13&page_size=8&sort_by=repudiandae&sort_order=doloremque&search=nihil" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/import-types';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '13',
            'page_size' => '8',
            'sort_by' => 'repudiandae',
            'sort_order' => 'doloremque',
            'search' => 'nihil',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/import-types"
);

const params = {
    "page": "13",
    "page_size": "8",
    "sort_by": "repudiandae",
    "sort_order": "doloremque",
    "search": "nihil",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/import-types

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

name   string  optional  

The name of import type. Example : "Categories" Example: est

code   string  optional  

The code of import type. Example : "categories" Example: deserunt

Query Parameters

page   integer  optional  

optional The page number. Example: 13

page_size   integer  optional  

optional The number of record you want per page. Example: 8

sort_by   string  optional  

optional The column name. Example: repudiandae

sort_order   string  optional  

optional The order in which you want your records. Example: doloremque

search   string  optional  

optional The general search, it will find matching string. Example: nihil

Industries

Retrieve industry classifications for commercial customers (restaurants, warehouses, offices, etc.). Used to categorize commercial accounts by business type for reporting and segmentation.

Fetch all available industry

requires authentication

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/industries" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/industries';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/industries"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/industries

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Integration Types

View available integration types (CRM systems, accounting software, etc.) that can be connected to Smarter Launch. Integration availability may be restricted by company settings and user role.

Generic handler for integration type actions

requires authentication

it will be passed to the integration type if the method exists there.

If the endpoint is a no-auth endpoint, we will allow it to be executed without going through the auth middleware. This is useful for endpoints that are called by customers that aren't logged in. The endpoint must be explicitly defined to be a no-auth endpoint in the integration type.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/integration-types/1/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/integration-types/1/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/integration-types/1/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/integration-types/{integrationType_type_code}/{action}

POST api/v1/integration-types/{integrationType_type_code}/{action}

PUT api/v1/integration-types/{integrationType_type_code}/{action}

PATCH api/v1/integration-types/{integrationType_type_code}/{action}

DELETE api/v1/integration-types/{integrationType_type_code}/{action}

OPTIONS api/v1/integration-types/{integrationType_type_code}/{action}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

companyIntegration_uuid   string  optional  

The UUID of the integration. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

List Integration Types

requires authentication

Shows the list of integration types available for a company.
Note: Only administrators have access to certain integration types.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/integrations" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/integrations';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/integrations"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/integrations

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Integrations

Connect and manage integrations with external CRM systems, accounting software, and other business tools. Configure integration settings, sync data, and view integration logs.

Generic handler for company integration actions

requires authentication

If the method exists within the CompanyIntegrationController, it will be called, otherwise it will be passed to the integration type if the method exists there.

If the endpoint is a no-auth endpoint, we will allow it to be executed without going through the auth middleware. This is useful for endpoints that are called by customers that aren't logged in. The endpoint must be explicitly defined to be a no-auth endpoint in the integration type.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations/3fa85f64-5717-4562-b3fc-2c963f66afa6/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations/3fa85f64-5717-4562-b3fc-2c963f66afa6/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations/3fa85f64-5717-4562-b3fc-2c963f66afa6/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/integrations/{companyIntegration_uuid}/{action}

POST api/v1/companies/{company_uuid}/integrations/{companyIntegration_uuid}/{action}

PUT api/v1/companies/{company_uuid}/integrations/{companyIntegration_uuid}/{action}

PATCH api/v1/companies/{company_uuid}/integrations/{companyIntegration_uuid}/{action}

DELETE api/v1/companies/{company_uuid}/integrations/{companyIntegration_uuid}/{action}

OPTIONS api/v1/companies/{company_uuid}/integrations/{companyIntegration_uuid}/{action}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyIntegration_uuid   string  optional  

The UUID of the company_integration. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

List

requires authentication

Shows the list of integrations for a company

Note: Integration logs are NOT included in list responses for performance reasons. Use the GET /logs endpoint to retrieve logs for a specific integration.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/integrations

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Show

requires authentication

Shows a single item of integrations for a company

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/integrations/{companyIntegration_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_integration_uuid   string  optional  

uuid required The UUID of the company integration that is to be updated. Example: 3245d634-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyIntegration_uuid   string  optional  

The UUID of the company_integration. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Create a company integration with empty credential values

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"integration_type_uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'integration_type_uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "integration_type_uuid": "3245d630-24fd-11ec-accd-e397aec85c7f"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/integrations

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

integration_type_uuid   uuid   

The integration type UUID. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

Update

requires authentication

This endpoint updates the company integration and triggers the sync process (if applicable) if the data is verified and the status is set to active.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"credentials\": [
        \"illum\"
    ],
    \"status_uuid\": \"6d585bee-31fb-3b86-8f38-37ccebb01b30\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'credentials' => [
                'illum',
            ],
            'status_uuid' => '6d585bee-31fb-3b86-8f38-37ccebb01b30',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "credentials": [
        "illum"
    ],
    "status_uuid": "6d585bee-31fb-3b86-8f38-37ccebb01b30"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/integrations/{companyIntegration_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_integration_uuid   string  optional  

uuid required The UUID of the company integration that is to be updated. Example: 3245d634-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyIntegration_uuid   string  optional  

The UUID of the company_integration. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

credentials   string[]   

The credentials for the company integration

status_uuid   uuid   

The status UUID for company integration Example: 6d585bee-31fb-3b86-8f38-37ccebb01b30

Patch

requires authentication

This endpoint patch the company integration and triggers the sync process if the data is verified and the status is set to active.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"credentials\": [
        \"voluptate\"
    ],
    \"status_uuid\": \"d451bd0a-136d-3718-880a-590bbe6067a1\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'credentials' => [
                'voluptate',
            ],
            'status_uuid' => 'd451bd0a-136d-3718-880a-590bbe6067a1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "credentials": [
        "voluptate"
    ],
    "status_uuid": "d451bd0a-136d-3718-880a-590bbe6067a1"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/integrations/{companyIntegration_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_integration_uuid   string  optional  

uuid required The UUID of the company integration that is to be updated. Example: 3245d634-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyIntegration_uuid   string  optional  

The UUID of the company_integration. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

credentials   string[]   

The credentials for the company integration

status_uuid   uuid   

The status uuid for company integration Example: d451bd0a-136d-3718-880a-590bbe6067a1

Delete

requires authentication

This endpoint allows user to delete a Company Integration.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/integrations/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/integrations/{companyIntegration_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_integration_uuid   string  optional  

uuid required The UUID of the company integration that is to be updated. Example: 3245d634-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyIntegration_uuid   string  optional  

The UUID of the company_integration. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Line Items

Manage additional services and products that can be added to proposals. Line items include pricing information, billing schedules, service schedules, and can be imported in bulk.

List

requires authentication

Shows the list of line items with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items?page=1&page_size=12&sort_by=illum&sort_order=qui&search=reiciendis" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'page_size' => '12',
            'sort_by' => 'illum',
            'sort_order' => 'qui',
            'search' => 'reiciendis',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items"
);

const params = {
    "page": "1",
    "page_size": "12",
    "sort_by": "illum",
    "sort_order": "qui",
    "search": "reiciendis",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/line-items

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 1

page_size   integer  optional  

optional The number of record you want per page. Example: 12

sort_by   string  optional  

optional The column name. Example: illum

sort_order   string  optional  

optional The order in which you want your records. Example: qui

search   string  optional  

optional The general search, it will find matching string. Example: reiciendis

Show

requires authentication

Show a single line item.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/line-items/{lineItem_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

lineItem_uuid   string  optional  

The UUID of the line item. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a new line item.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"maxime\",
    \"description\": \"Id sed eos excepturi exercitationem non quos nihil.\",
    \"line_item_values\": \"nemo\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'maxime',
            'description' => 'Id sed eos excepturi exercitationem non quos nihil.',
            'line_item_values' => 'nemo',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "maxime",
    "description": "Id sed eos excepturi exercitationem non quos nihil.",
    "line_item_values": "nemo"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/line-items

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the line item. Example : "Termite Pesticide" Example: maxime

description   string   

The description of the line item. Example : "Termite Pesticide" Example: Id sed eos excepturi exercitationem non quos nihil.

line_item_values   string   

The data of the line item. Example : {"price": [100, 100]} Example: nemo

Import Set to Line Items

requires authentication

Store a newly created import set.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items/import" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"import_files\": \"ipsam\",
    \"override\": false
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items/import';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'import_files' => 'ipsam',
            'override' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items/import"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "import_files": "ipsam",
    "override": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/line-items/import

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

import_files   files   

The set of json files containing import settings data. Example: ipsam

override   boolean   

Determine if the import set will replace the current ones with matching names. Example: false

Update

requires authentication

Update a line item.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"deleniti\",
    \"description\": \"Ut et et dolorum ipsum.\",
    \"line_item_values\": \"blanditiis\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'deleniti',
            'description' => 'Ut et et dolorum ipsum.',
            'line_item_values' => 'blanditiis',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "deleniti",
    "description": "Ut et et dolorum ipsum.",
    "line_item_values": "blanditiis"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/line-items/{lineItem_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

lineItem_uuid   string  optional  

The UUID of the line item. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the line item. Example : "Termite Pesticide" Example: deleniti

description   string  optional  

The description of the line item. Example : "Termite Pesticide" Example: Ut et et dolorum ipsum.

line_item_values   string   

The data of the line item. Example : {"price": [100, 100]} Example: blanditiis

Patch

requires authentication

Update a line item.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"cupiditate\",
    \"description\": \"Odio quia molestiae qui et nesciunt dignissimos quo.\",
    \"line_item_values\": \"ut\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'cupiditate',
            'description' => 'Odio quia molestiae qui et nesciunt dignissimos quo.',
            'line_item_values' => 'ut',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "cupiditate",
    "description": "Odio quia molestiae qui et nesciunt dignissimos quo.",
    "line_item_values": "ut"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/line-items/{lineItem_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

lineItem_uuid   string  optional  

The UUID of the line item. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the line item. Example : "Termite Pesticide" Example: cupiditate

description   string  optional  

The description of the line item. Example : "Termite Pesticide" Example: Odio quia molestiae qui et nesciunt dignissimos quo.

line_item_values   string   

The data of the line item. Example : {"price": [100, 100]} Example: ut

Delete

requires authentication

Delete a line item.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/line-items/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/line-items/{lineItem_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

lineItem_uuid   string  optional  

The UUID of the line item. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Location Custom Settings

Configure location-specific operational settings and preferences that override company-level defaults for individual branches.

List

requires authentication

Shows the list of do with filter or single template page data.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-settings?page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page_size\": 15,
    \"sort_by\": \"title\",
    \"sort_order\": \"asc\",
    \"search\": \"John\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-settings';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
        ],
        'json' => [
            'page_size' => 15,
            'sort_by' => 'title',
            'sort_order' => 'asc',
            'search' => 'John',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-settings"
);

const params = {
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page_size": 15,
    "sort_by": "title",
    "sort_order": "asc",
    "search": "John"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/custom-settings

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 1

Body Parameters

page_size   integer  optional  

optional The number of records you want per page. Example: 15

sort_by   string  optional  

optional The column name. Example: title

sort_order   string  optional  

optional The order in which you want your records. Example: asc

search   string  optional  

optional The general search, it will find matching string. Example: John

Show

requires authentication

Show detail of a company location setting

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-settings/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-settings/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-settings/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/custom-settings/{companyLocationCustomSetting_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

companyUuid   string  optional  

Uuid of Company. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

companyLocationCustomSettingUuid   string  optional  

Uuid of CompanyLocationCustomSetting. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyLocationCustomSetting_uuid   string  optional  

The UUID of the company_location_custom_setting. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Create

requires authentication

Create a company location custom setting

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-settings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Services\",
    \"value\": \"Pest control\",
    \"company_location_uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-settings';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Services',
            'value' => 'Pest control',
            'company_location_uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-settings"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Services",
    "value": "Pest control",
    "company_location_uuid": "3245d630-24fd-11ec-accd-e397aec85c7f"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/custom-settings

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

companyUuid   string  optional  

Uuid of Company. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of custom setting. Example: Services

value   string   

The value of custom setting. Example: Pest control

company_location_uuid   string  optional  

option The specific company location uuid of the custom setting. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

Update

requires authentication

Update a company location custom setting

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-settings/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Services\",
    \"value\": \"Pest control\",
    \"company_location_uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-settings/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Services',
            'value' => 'Pest control',
            'company_location_uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-settings/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Services",
    "value": "Pest control",
    "company_location_uuid": "3245d630-24fd-11ec-accd-e397aec85c7f"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/custom-settings/{companyLocationCustomSetting_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

companyUuid   string  optional  

Uuid of Company. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

companyLocationCustomSettingUuid   string  optional  

Uuid of CompanyLocationCustomSetting. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyLocationCustomSetting_uuid   string  optional  

The UUID of the company_location_custom_setting. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of custom setting. Example: Services

value   string   

The value of custom setting. Example: Pest control

company_location_uuid   string  optional  

option The specific company location uuid of the custom setting. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

Delete

requires authentication

Deletes a company location custom setting

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-settings/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-settings/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-settings/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/custom-settings/{companyLocationCustomSetting_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

companyUuid   string  optional  

Uuid of Company. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

companyLocationCustomSettingUuid   string  optional  

Uuid of CompanyLocationCustomSetting. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyLocationCustomSetting_uuid   string  optional  

The UUID of the company_location_custom_setting. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Locations

Manage company branch locations and service territories. Configure location-specific settings, assign service plans, manage user access by location, and set up integration settings for each branch.

List

requires authentication

Shows the list of locations with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations?page=7&page_size=6&sort_by=placeat&sort_order=sit&search=omnis" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '7',
            'page_size' => '6',
            'sort_by' => 'placeat',
            'sort_order' => 'sit',
            'search' => 'omnis',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations"
);

const params = {
    "page": "7",
    "page_size": "6",
    "sort_by": "placeat",
    "sort_order": "sit",
    "search": "omnis",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/locations

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

has_service_plans   string  optional  

boolean The locations which has service plans. Example : true Example: nihil

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 7

page_size   integer  optional  

optional The number of record you want per page. Example: 6

sort_by   string  optional  

optional The column name. Example: placeat

sort_order   string  optional  

optional The order in which you want your records. Example: sit

search   string  optional  

optional The general search, it will find matching string. Example: omnis

Show

requires authentication

Shows the detail of a specific company location.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"withTemplates\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'withTemplates' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "withTemplates": true
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/locations/{companyLocation_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

companyUUID   string   

The company uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

companyLocationUUID   string   

The company uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyLocation_uuid   string  optional  

The UUID of the company_location. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

withTemplates   boolean  optional  

optional Whether return templates attached to company location. Example: true

Create

requires authentication

This endpoint lets user to create single record using uuid.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Phoenix Metro Area\",
    \"description\": \"We do amazing things here.\",
    \"phone\": \"5554443333\",
    \"email\": \"hello@smarterlaunch.com\",
    \"address1\": \"\'123 Smarter Launch Way\'\",
    \"address2\": \"\'Suite 101\'\",
    \"city\": \"Queen Creek\",
    \"country_state_uuid\": \"ecd24580-2749-11ec-9b86-1102c06e74b4\",
    \"country_uuid\": \"ecd24580-2749-11ec-9b86-1102c06e74b4\",
    \"postal_code\": \"85410\",
    \"latitude\": \"23.0396\",
    \"longitude\": \"72.566\",
    \"enable_overrides\": true,
    \"license_number\": \"lc-123456\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Phoenix Metro Area',
            'description' => 'We do amazing things here.',
            'phone' => '5554443333',
            'email' => 'hello@smarterlaunch.com',
            'address1' => '\'123 Smarter Launch Way\'',
            'address2' => '\'Suite 101\'',
            'city' => 'Queen Creek',
            'country_state_uuid' => 'ecd24580-2749-11ec-9b86-1102c06e74b4',
            'country_uuid' => 'ecd24580-2749-11ec-9b86-1102c06e74b4',
            'postal_code' => '85410',
            'latitude' => '23.0396',
            'longitude' => '72.566',
            'enable_overrides' => true,
            'license_number' => 'lc-123456',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Phoenix Metro Area",
    "description": "We do amazing things here.",
    "phone": "5554443333",
    "email": "hello@smarterlaunch.com",
    "address1": "'123 Smarter Launch Way'",
    "address2": "'Suite 101'",
    "city": "Queen Creek",
    "country_state_uuid": "ecd24580-2749-11ec-9b86-1102c06e74b4",
    "country_uuid": "ecd24580-2749-11ec-9b86-1102c06e74b4",
    "postal_code": "85410",
    "latitude": "23.0396",
    "longitude": "72.566",
    "enable_overrides": true,
    "license_number": "lc-123456"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/locations

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the location. Example: Phoenix Metro Area

description   string  optional  

optional The description of the location. Example: We do amazing things here.

phone   string  optional  

optional The last name of the location. Example: 5554443333

email   string  optional  

optional The email of the location. Example: hello@smarterlaunch.com

address1   string  optional  

optional The address of the company. Example: '123 Smarter Launch Way'

address2   string  optional  

optional The address of the company. Example: 'Suite 101'

city   string  optional  

optional The company city name. Example: Queen Creek

country_state_uuid   string  optional  

optional The company state uuid. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

country_uuid   string  optional  

optional The company country uuid. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

postal_code   string  optional  

optional The postal code of the company. Example: 85410

latitude   string  optional  

optional The latitude of the company. Example: 23.0396

longitude   string  optional  

optional The longitude of the company. Example: 72.566

enable_overrides   boolean  optional  

optional. Example: true

license_number   string  optional  

optional. Example: lc-123456

Update All

requires authentication

This endpoint lets user to update multiple record using uuids.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/updateAll" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/updateAll';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/updateAll"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/locations/updateAll

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

companyUuid   string   

The uuid id of the company. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

*   object  optional  
name   string   

The name of the location. Example: Phoenix Metro Area

description   string  optional  

optional The description of the location. Example: We do amazing things here.

phone   string  optional  

optional The last name of the location. Example: 5554443333

email   string  optional  

optional The email of the location. Example: hello@smarterlaunch.com

address1   string  optional  

optional The address of the company. Example: '123 Smarter Launch Way'

address2   string  optional  

optional The address of the company. Example: 'Suite 101'

city   string  optional  

optional The company city name. Example: Queen Creek

country_state_uuid   string  optional  

optional The company state uuid. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

country_uuid   string  optional  

optional The company country uuid. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

postal_code   string  optional  

optional The postal code of the company. Example: 85410

latitude   string  optional  

optional The latitude of the company. Example: 23.0396

longitude   string  optional  

optional The longitude of the company. Example: 72.566

enable_overrides   boolean  optional  

optional. Example: true

Edit

requires authentication

This endpoint lets user to update single record using uuid (using PUT method).

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Phoenix Metro Area\",
    \"description\": \"We do amazing things here.\",
    \"phone\": \"5554443333\",
    \"email\": \"hello@smarterlaunch.com\",
    \"address1\": \"\'123 Smarter Launch Way\'\",
    \"address2\": \"\'Suite 101\'\",
    \"city\": \"Queen Creek\",
    \"country_state_uuid\": \"ecd24580-2749-11ec-9b86-1102c06e74b4\",
    \"country_uuid\": \"ecd24580-2749-11ec-9b86-1102c06e74b4\",
    \"postal_code\": \"85410\",
    \"latitude\": \"23.0396\",
    \"longitude\": \"72.566\",
    \"enable_overrides\": true,
    \"license_number\": \"lc-123456\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Phoenix Metro Area',
            'description' => 'We do amazing things here.',
            'phone' => '5554443333',
            'email' => 'hello@smarterlaunch.com',
            'address1' => '\'123 Smarter Launch Way\'',
            'address2' => '\'Suite 101\'',
            'city' => 'Queen Creek',
            'country_state_uuid' => 'ecd24580-2749-11ec-9b86-1102c06e74b4',
            'country_uuid' => 'ecd24580-2749-11ec-9b86-1102c06e74b4',
            'postal_code' => '85410',
            'latitude' => '23.0396',
            'longitude' => '72.566',
            'enable_overrides' => true,
            'license_number' => 'lc-123456',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Phoenix Metro Area",
    "description": "We do amazing things here.",
    "phone": "5554443333",
    "email": "hello@smarterlaunch.com",
    "address1": "'123 Smarter Launch Way'",
    "address2": "'Suite 101'",
    "city": "Queen Creek",
    "country_state_uuid": "ecd24580-2749-11ec-9b86-1102c06e74b4",
    "country_uuid": "ecd24580-2749-11ec-9b86-1102c06e74b4",
    "postal_code": "85410",
    "latitude": "23.0396",
    "longitude": "72.566",
    "enable_overrides": true,
    "license_number": "lc-123456"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/locations/{companyLocation_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

companyUuid   string   

The uuid id of the company. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

companyLocationUuid   string   

The uuid id of the location. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyLocation_uuid   string  optional  

The UUID of the company_location. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the location. Example: Phoenix Metro Area

description   string  optional  

optional The description of the location. Example: We do amazing things here.

phone   string  optional  

optional The last name of the location. Example: 5554443333

email   string  optional  

optional The email of the location. Example: hello@smarterlaunch.com

address1   string  optional  

optional The address of the company. Example: '123 Smarter Launch Way'

address2   string  optional  

optional The address of the company. Example: 'Suite 101'

city   string  optional  

optional The company city name. Example: Queen Creek

country_state_uuid   string  optional  

optional The company state uuid. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

country_uuid   string  optional  

optional The company country uuid. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

postal_code   string  optional  

optional The postal code of the company. Example: 85410

latitude   string  optional  

optional The latitude of the company. Example: 23.0396

longitude   string  optional  

optional The longitude of the company. Example: 72.566

enable_overrides   boolean  optional  

optional. Example: true

license_number   string  optional  

optional. Example: lc-123456

Update

requires authentication

This endpoint lets user to update single record using uuid.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Phoenix Metro Area\",
    \"description\": \"We do amazing things here.\",
    \"phone\": \"5554443333\",
    \"email\": \"hello@smarterlaunch.com\",
    \"address1\": \"\'123 Smarter Launch Way\'\",
    \"address2\": \"\'Suite 101\'\",
    \"city\": \"Queen Creek\",
    \"country_state_uuid\": \"ecd24580-2749-11ec-9b86-1102c06e74b4\",
    \"country_uuid\": \"ecd24580-2749-11ec-9b86-1102c06e74b4\",
    \"postal_code\": \"85410\",
    \"latitude\": \"23.0396\",
    \"longitude\": \"72.566\",
    \"enable_overrides\": true,
    \"license_number\": \"lc-123456\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Phoenix Metro Area',
            'description' => 'We do amazing things here.',
            'phone' => '5554443333',
            'email' => 'hello@smarterlaunch.com',
            'address1' => '\'123 Smarter Launch Way\'',
            'address2' => '\'Suite 101\'',
            'city' => 'Queen Creek',
            'country_state_uuid' => 'ecd24580-2749-11ec-9b86-1102c06e74b4',
            'country_uuid' => 'ecd24580-2749-11ec-9b86-1102c06e74b4',
            'postal_code' => '85410',
            'latitude' => '23.0396',
            'longitude' => '72.566',
            'enable_overrides' => true,
            'license_number' => 'lc-123456',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Phoenix Metro Area",
    "description": "We do amazing things here.",
    "phone": "5554443333",
    "email": "hello@smarterlaunch.com",
    "address1": "'123 Smarter Launch Way'",
    "address2": "'Suite 101'",
    "city": "Queen Creek",
    "country_state_uuid": "ecd24580-2749-11ec-9b86-1102c06e74b4",
    "country_uuid": "ecd24580-2749-11ec-9b86-1102c06e74b4",
    "postal_code": "85410",
    "latitude": "23.0396",
    "longitude": "72.566",
    "enable_overrides": true,
    "license_number": "lc-123456"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/locations/{companyLocation_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

companyUuid   string   

The uuid id of the company. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

companyLocationUuid   string   

The uuid id of the location. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyLocation_uuid   string  optional  

The UUID of the company_location. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the location. Example: Phoenix Metro Area

description   string  optional  

optional The description of the location. Example: We do amazing things here.

phone   string  optional  

optional The last name of the location. Example: 5554443333

email   string  optional  

optional The email of the location. Example: hello@smarterlaunch.com

address1   string  optional  

optional The address of the company. Example: '123 Smarter Launch Way'

address2   string  optional  

optional The address of the company. Example: 'Suite 101'

city   string  optional  

optional The company city name. Example: Queen Creek

country_state_uuid   string  optional  

optional The company state uuid. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

country_uuid   string  optional  

optional The company country uuid. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

postal_code   string  optional  

optional The postal code of the company. Example: 85410

latitude   string  optional  

optional The latitude of the company. Example: 23.0396

longitude   string  optional  

optional The longitude of the company. Example: 72.566

enable_overrides   boolean  optional  

optional. Example: true

license_number   string  optional  

optional. Example: lc-123456

Delete

requires authentication

This endpoint enables user to delete a company location

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/locations/{companyLocation_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

uuid   string   

The uuid of the company location. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyLocation_uuid   string  optional  

The UUID of the company_location. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Integration Data

requires authentication

Get data from a 3rd party API

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/3fa85f64-5717-4562-b3fc-2c963f66afa6/integration-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/3fa85f64-5717-4562-b3fc-2c963f66afa6/integration-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/locations/3fa85f64-5717-4562-b3fc-2c963f66afa6/integration-data"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/locations/{companyLocation_uuid}/integration-data

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

uuid   string   

The uuid of the company location. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

integration_type_uuid   string   

The uuid of the integration type. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

force_look_up   string  optional  

Example: true

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyLocation_uuid   string  optional  

The UUID of the company_location. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Media Items

Manage photos, videos, and documents used in proposals and service documentation. Organize media with tags and sources for easy retrieval and reuse across projects.

List

requires authentication

Shows the list of media items with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/media-items?page=10&page_size=17&sort_by=architecto&sort_order=repellat&search=numquam" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_uuid\": \"ea0e1af0-9810-3e39-85fd-220378c11615\",
    \"company_location_uuid\": \"102e8fef-51f7-39e8-8091-94f28cc24962\",
    \"media_source_uuid\": \"791de5c6-aeb8-3cec-9a81-4bba3e9c7786\",
    \"include_global_files\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-items';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '10',
            'page_size' => '17',
            'sort_by' => 'architecto',
            'sort_order' => 'repellat',
            'search' => 'numquam',
        ],
        'json' => [
            'company_uuid' => 'ea0e1af0-9810-3e39-85fd-220378c11615',
            'company_location_uuid' => '102e8fef-51f7-39e8-8091-94f28cc24962',
            'media_source_uuid' => '791de5c6-aeb8-3cec-9a81-4bba3e9c7786',
            'include_global_files' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-items"
);

const params = {
    "page": "10",
    "page_size": "17",
    "sort_by": "architecto",
    "sort_order": "repellat",
    "search": "numquam",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "company_uuid": "ea0e1af0-9810-3e39-85fd-220378c11615",
    "company_location_uuid": "102e8fef-51f7-39e8-8091-94f28cc24962",
    "media_source_uuid": "791de5c6-aeb8-3cec-9a81-4bba3e9c7786",
    "include_global_files": true
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/media-items

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

page   integer  optional  

optional The page number. Example: 10

page_size   integer  optional  

optional The number of record you want per page. Example: 17

sort_by   string  optional  

optional The column name. Example: architecto

sort_order   string  optional  

optional The order in which you want your records. Example: repellat

search   string  optional  

optional The general search, it will find matching string. Example: numquam

Body Parameters

types   object  optional  
Must be one of:
  • AUDIO
  • IMAGE
  • VIDEO
  • DOCUMENT
  • EMBED
media_tag_names   object  optional  
company_uuid   string  optional  

Must be a valid UUID. Example: ea0e1af0-9810-3e39-85fd-220378c11615

companies_uuid   object  optional  
company_location_uuid   string  optional  

Must be a valid UUID. Example: 102e8fef-51f7-39e8-8091-94f28cc24962

company_locations_uuid   object  optional  
media_source_uuid   string  optional  

Must be a valid UUID. Example: 791de5c6-aeb8-3cec-9a81-4bba3e9c7786

include_global_files   boolean  optional  

Example: true

Show

requires authentication

Show a single media item

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/media-items/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-items/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-items/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/media-items/{mediaItem_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

mediaItem_uuid   string  optional  

The UUID of the media_item. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Upload a media item

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/media-items" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=explicabo"\
    --form "description=Cum modi aliquam est dolorum velit."\
    --form "directory=proposal-template"\
    --form "type=document"\
    --form "fileUpload=@/tmp/phpFonrBL" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-items';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'name',
                'contents' => 'explicabo'
            ],
            [
                'name' => 'description',
                'contents' => 'Cum modi aliquam est dolorum velit.'
            ],
            [
                'name' => 'directory',
                'contents' => 'proposal-template'
            ],
            [
                'name' => 'type',
                'contents' => 'document'
            ],
            [
                'name' => 'fileUpload',
                'contents' => fopen('/tmp/phpFonrBL', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-items"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('name', 'explicabo');
body.append('description', 'Cum modi aliquam est dolorum velit.');
body.append('directory', 'proposal-template');
body.append('type', 'document');
body.append('fileUpload', document.querySelector('input[name="fileUpload"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/media-items

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

name   string  optional  

The name of the file. Example : MyFile.txt Example: explicabo

description   string  optional  

The description of the file. Example : This is a sample description for uploaded file Example: Cum modi aliquam est dolorum velit.

directory   string   

The directory where the file will be located. Example: proposal-template

type   string   

The type of the file (in: image, document). Example: document

fileUpload   file   

The file to be uploaded. Example: /tmp/phpFonrBL

Update

requires authentication

Update a media item.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/media-items/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"sit\",
    \"description\": \"Et a non adipisci delectus vero.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-items/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'sit',
            'description' => 'Et a non adipisci delectus vero.',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-items/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "sit",
    "description": "Et a non adipisci delectus vero."
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/media-items/{mediaItem_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

mediaItem_uuid   string  optional  

The UUID of the media_item. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the media item. Example : "My media item" Example: sit

description   string  optional  

The description of the media item. Example : "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Consequatur dolores iste quae soluta." Example: Et a non adipisci delectus vero.

Patch

requires authentication

Patch a media item.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/media-items/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"omnis\",
    \"description\": \"Omnis eos eum minima itaque.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-items/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'omnis',
            'description' => 'Omnis eos eum minima itaque.',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-items/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "omnis",
    "description": "Omnis eos eum minima itaque."
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/media-items/{mediaItem_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

mediaItem_uuid   string  optional  

The UUID of the media_item. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the media item. Example : "My media item" Example: omnis

description   string  optional  

The description of the media item. Example : "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Consequatur dolores iste quae soluta." Example: Omnis eos eum minima itaque.

Delete

requires authentication

Delete a media item.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/media-items/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-items/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-items/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/media-items/{mediaItem_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

mediaItem_uuid   string  optional  

The UUID of the media_item. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Media Sources

Define and manage sources for media files (uploaded, camera, external URL, imports) to track where images and documents originated.

List

requires authentication

Shows the list of media source with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/media-sources?page=20&page_size=19&sort_by=et&sort_order=sit&search=maxime" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-sources';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '20',
            'page_size' => '19',
            'sort_by' => 'et',
            'sort_order' => 'sit',
            'search' => 'maxime',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-sources"
);

const params = {
    "page": "20",
    "page_size": "19",
    "sort_by": "et",
    "sort_order": "sit",
    "search": "maxime",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/media-sources

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

page   integer  optional  

optional The page number. Example: 20

page_size   integer  optional  

optional The number of record you want per page. Example: 19

sort_by   string  optional  

optional The column name. Example: et

sort_order   string  optional  

optional The order in which you want your records. Example: sit

search   string  optional  

optional The general search, it will find matching string. Example: maxime

Body Parameters

types   object  optional  
Must be one of:
  • AUDIO
  • IMAGE
  • VIDEO
  • DOCUMENT
  • EMBED

Favorite Media Source List

requires authentication

Get the list of favorite Media Sources

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/media-sources/favorites" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"sit\",
    \"description\": \"Maxime aut mollitia aliquam illo sit.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-sources/favorites';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'sit',
            'description' => 'Maxime aut mollitia aliquam illo sit.',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-sources/favorites"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "sit",
    "description": "Maxime aut mollitia aliquam illo sit."
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/media-sources/favorites

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

The name of the media source. Example : "My media source" Example: sit

description   string  optional  

The description of the media source. Example : "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Consequatur dolores iste quae soluta." Example: Maxime aut mollitia aliquam illo sit.

Show

requires authentication

Show a single media source

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/media-sources/{mediaSource_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

mediaSource_uuid   string  optional  

The UUID of the media_source. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Upload a media source

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/media-sources" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"maiores\",
    \"description\": \"Fuga fuga atque sit et.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-sources';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'maiores',
            'description' => 'Fuga fuga atque sit et.',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-sources"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "maiores",
    "description": "Fuga fuga atque sit et."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/media-sources

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string  optional  

The name of the file. Example : MyFile.txt Example: maiores

description   string  optional  

The description of the file. Example : This is a sample description for uploaded file Example: Fuga fuga atque sit et.

Add to Favorite

requires authentication

Add media source to the user company's media source favorites

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6/favorites" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"et\",
    \"description\": \"Quod maiores iure ipsam.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6/favorites';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'et',
            'description' => 'Quod maiores iure ipsam.',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6/favorites"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "et",
    "description": "Quod maiores iure ipsam."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/media-sources/{mediaSource_uuid}/favorites

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

mediaSource_uuid   string  optional  

The UUID of the media_source. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the media source. Example : "My media source" Example: et

description   string  optional  

The description of the media source. Example : "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Consequatur dolores iste quae soluta." Example: Quod maiores iure ipsam.

Import CSV

requires authentication

Accept CSV and populate media item data for a media source/manufacturer

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6/import-csv" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "file=@/tmp/phpKpuHlJ" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6/import-csv';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'file',
                'contents' => fopen('/tmp/phpKpuHlJ', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6/import-csv"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('file', document.querySelector('input[name="file"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/media-sources/{mediaSource_uuid}/import-csv

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

mediaSource_uuid   string  optional  

The UUID of the media_source. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

file   file   

The name of the media source. Example : "company.csv" Example: /tmp/phpKpuHlJ

Update

requires authentication

Update a media source.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"mollitia\",
    \"description\": \"Vel aspernatur nihil et sunt earum ipsam.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'mollitia',
            'description' => 'Vel aspernatur nihil et sunt earum ipsam.',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "mollitia",
    "description": "Vel aspernatur nihil et sunt earum ipsam."
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/media-sources/{mediaSource_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

mediaSource_uuid   string  optional  

The UUID of the media_source. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the media source. Example : "My media source" Example: mollitia

description   string  optional  

The description of the media source. Example : "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Consequatur dolores iste quae soluta." Example: Vel aspernatur nihil et sunt earum ipsam.

Patch

requires authentication

Patch a media source.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"ut\",
    \"description\": \"Placeat non eos eius omnis aut magni fuga.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'ut',
            'description' => 'Placeat non eos eius omnis aut magni fuga.',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "ut",
    "description": "Placeat non eos eius omnis aut magni fuga."
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/media-sources/{mediaSource_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

mediaSource_uuid   string  optional  

The UUID of the media_source. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the media source. Example : "My media source" Example: ut

description   string  optional  

The description of the media source. Example : "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Consequatur dolores iste quae soluta." Example: Placeat non eos eius omnis aut magni fuga.

Delete

requires authentication

Delete a media source.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/media-sources/{mediaSource_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

mediaSource_uuid   string  optional  

The UUID of the media_source. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Remove Favorite Media Source

requires authentication

Remove media source to the user company's media source favorites

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6/favorites" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"aliquid\",
    \"description\": \"Qui sit officiis reiciendis fugiat molestiae mollitia.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6/favorites';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'aliquid',
            'description' => 'Qui sit officiis reiciendis fugiat molestiae mollitia.',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6/favorites"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "aliquid",
    "description": "Qui sit officiis reiciendis fugiat molestiae mollitia."
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/v1/media-sources/{mediaSource_uuid}/favorites

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

mediaSource_uuid   string  optional  

The UUID of the media_source. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the media source. Example : "My media source" Example: aliquid

description   string  optional  

The description of the media source. Example : "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Consequatur dolores iste quae soluta." Example: Qui sit officiis reiciendis fugiat molestiae mollitia.

Media Tags

Create tags to categorize and organize media files (photos, videos, documents) for easy retrieval and reuse across proposals and service documentation.

List

requires authentication

Shows the list of media tag with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/media-tags?page=7&page_size=14&sort_by=recusandae&sort_order=quaerat&search=distinctio" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-tags';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '7',
            'page_size' => '14',
            'sort_by' => 'recusandae',
            'sort_order' => 'quaerat',
            'search' => 'distinctio',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-tags"
);

const params = {
    "page": "7",
    "page_size": "14",
    "sort_by": "recusandae",
    "sort_order": "quaerat",
    "search": "distinctio",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/media-tags

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

page   integer  optional  

optional The page number. Example: 7

page_size   integer  optional  

optional The number of record you want per page. Example: 14

sort_by   string  optional  

optional The column name. Example: recusandae

sort_order   string  optional  

optional The order in which you want your records. Example: quaerat

search   string  optional  

optional The general search, it will find matching string. Example: distinctio

Show

requires authentication

Show a single media tag

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/media-tags/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-tags/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-tags/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/media-tags/{mediaTag_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

mediaTag_uuid   string  optional  

The UUID of the media_tag. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Upload a media tag

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/media-tags" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"non\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-tags';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'non',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-tags"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "non"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/media-tags

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string  optional  

The name of the file. Example : Tag 1 Example: non

Update

requires authentication

Update a media tag.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/media-tags/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"officiis\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-tags/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'officiis',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-tags/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "officiis"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/media-tags/{mediaTag_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

mediaTag_uuid   string  optional  

The UUID of the media_tag. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the media tag. Example : "My media tag" Example: officiis

Patch

requires authentication

Patch a media tag.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/media-tags/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"quia\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-tags/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'quia',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-tags/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "quia"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/media-tags/{mediaTag_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

mediaTag_uuid   string  optional  

The UUID of the media_tag. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the media tag. Example : "My media tag" Example: quia

Delete

requires authentication

Delete a media tag.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/media-tags/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/media-tags/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/media-tags/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/media-tags/{mediaTag_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

mediaTag_uuid   string  optional  

The UUID of the media_tag. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Permissions

View available system permissions that can be assigned to roles for granular access control. Permissions control access to features and data throughout the application.

List / Fetch

requires authentication

Shows the list of permission or fetch single record using uuid.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/permissions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\",
    \"name\": \"user-list\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/permissions';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
            'name' => 'user-list',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/permissions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "uuid": "3245d630-24fd-11ec-accd-e397aec85c7f",
    "name": "user-list"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/permissions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

uuid   string  optional  

optional The uuid of the permission. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

name   string   

The name of the permission. Example: user-list

List / Fetch

requires authentication

Shows the list of permission or fetch single record using uuid.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/permissions/{permissionUuid}" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\",
    \"name\": \"user-list\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/permissions/{permissionUuid}';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
            'name' => 'user-list',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/permissions/{permissionUuid}"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "uuid": "3245d630-24fd-11ec-accd-e397aec85c7f",
    "name": "user-list"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/permissions/{permissionUuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

uuid   string  optional  

optional The uuid of the permission. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

name   string   

The name of the permission. Example: user-list

Create / Update permission.

requires authentication

This endpoint lets user to create/update permission.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/permissions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"user-list\",
    \"uuid\": \"ecd24580-2749-11ec-9b86-1102c06e74b4\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/permissions';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'user-list',
            'uuid' => 'ecd24580-2749-11ec-9b86-1102c06e74b4',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/permissions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "user-list",
    "uuid": "ecd24580-2749-11ec-9b86-1102c06e74b4"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/permissions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

The name of the permission. Example: user-list

uuid   string  optional  

optional The uuid of the permission. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

Create / Update permission.

requires authentication

This endpoint lets user to create/update permission.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/permissions/{permissionUuid}" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"user-list\",
    \"uuid\": \"ecd24580-2749-11ec-9b86-1102c06e74b4\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/permissions/{permissionUuid}';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'user-list',
            'uuid' => 'ecd24580-2749-11ec-9b86-1102c06e74b4',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/permissions/{permissionUuid}"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "user-list",
    "uuid": "ecd24580-2749-11ec-9b86-1102c06e74b4"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/permissions/{permissionUuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

The name of the permission. Example: user-list

uuid   string  optional  

optional The uuid of the permission. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

Delete

requires authentication

This endpoint allows user to delete permission.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/permissions/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/permissions/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/permissions/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/permissions/{permissionUuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

uuid   string   

The uuid of the permission. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

Pest Treated

List

requires authentication

Shows the list of pest treated with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/pests-treated

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

page   integer  optional  

The page number. Example : 1 Example: 13

page_size   integer  optional  

The number of record you want per page. Example : 5 Example: 15

sort_by   string  optional  

The column name. Example : name Example: sed

sort_order   string  optional  

The order in which you want your records. Example : asc Example: sapiente

search   string  optional  

The general search, it will find matching string. Example : home Example: sed

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Show

requires authentication

Show a single pest treated.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/pests-treated/{pestTreated_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

pestTreated_uuid   string  optional  

The UUID of the pest_treated. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a newly created pest treated.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=sequi"\
    --form "pest_treated_attributes[attr]=value"\
    --form "icon_image_url=http://smarterlaunch.local/image1.jpg"\
    --form "pest_treated="\
    --form "photo_file=@/tmp/phpHZluSK" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'name',
                'contents' => 'sequi'
            ],
            [
                'name' => 'pest_treated_attributes[attr]',
                'contents' => 'value'
            ],
            [
                'name' => 'icon_image_url',
                'contents' => 'http://smarterlaunch.local/image1.jpg'
            ],
            [
                'name' => 'pest_treated',
                'contents' => ''
            ],
            [
                'name' => 'photo_file',
                'contents' => fopen('/tmp/phpHZluSK', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('name', 'sequi');
body.append('pest_treated_attributes[attr]', 'value');
body.append('icon_image_url', 'http://smarterlaunch.local/image1.jpg');
body.append('pest_treated', '');
body.append('photo_file', document.querySelector('input[name="photo_file"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/pests-treated

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the pest treated. Example : Pest Treated 1 Example: sequi

pest_treated_attributes   object   

The attributes of the pest treated.

icon_image_url   string  optional  

optional The image url of the pest treated. Example: http://smarterlaunch.local/image1.jpg

photo_file   file  optional  

optional The file of the pest treated image. Example: /tmp/phpHZluSK

pest_treated   object[]  optional  

optional An array of the above parameters.

Update

requires authentication

Update a pest treated.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=voluptatem"\
    --form "pest_treated_attributes[attr]=value"\
    --form "icon_image_url=http://smarterlaunch.local/image1.jpg"\
    --form "photo_file=@/tmp/phpJNaZQK" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'name',
                'contents' => 'voluptatem'
            ],
            [
                'name' => 'pest_treated_attributes[attr]',
                'contents' => 'value'
            ],
            [
                'name' => 'icon_image_url',
                'contents' => 'http://smarterlaunch.local/image1.jpg'
            ],
            [
                'name' => 'photo_file',
                'contents' => fopen('/tmp/phpJNaZQK', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('name', 'voluptatem');
body.append('pest_treated_attributes[attr]', 'value');
body.append('icon_image_url', 'http://smarterlaunch.local/image1.jpg');
body.append('photo_file', document.querySelector('input[name="photo_file"]').files[0]);

fetch(url, {
    method: "PUT",
    headers,
    body,
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/pests-treated/{pestTreated_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

pestTreated_uuid   string  optional  

The UUID of the pest_treated. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the pest treated. Example : Pest Treated 1 Example: voluptatem

pest_treated_attributes   object   

The attributes of the pest treated.

icon_image_url   string  optional  

optional The image url of the pest treated. Example: http://smarterlaunch.local/image1.jpg

photo_file   file  optional  

optional The file of the pest treated image. Example: /tmp/phpJNaZQK

Update

requires authentication

Update a pest treated.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=aut"\
    --form "pest_treated_attributes[attr]=value"\
    --form "icon_image_url=http://smarterlaunch.local/image1.jpg"\
    --form "photo_file=@/tmp/phpETFaOL" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'name',
                'contents' => 'aut'
            ],
            [
                'name' => 'pest_treated_attributes[attr]',
                'contents' => 'value'
            ],
            [
                'name' => 'icon_image_url',
                'contents' => 'http://smarterlaunch.local/image1.jpg'
            ],
            [
                'name' => 'photo_file',
                'contents' => fopen('/tmp/phpETFaOL', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('name', 'aut');
body.append('pest_treated_attributes[attr]', 'value');
body.append('icon_image_url', 'http://smarterlaunch.local/image1.jpg');
body.append('photo_file', document.querySelector('input[name="photo_file"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/pests-treated/{pestTreated_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

pestTreated_uuid   string  optional  

The UUID of the pest_treated. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the pest treated. Example : Pest Treated 1 Example: aut

pest_treated_attributes   object   

The attributes of the pest treated.

icon_image_url   string  optional  

optional The image url of the pest treated. Example: http://smarterlaunch.local/image1.jpg

photo_file   file  optional  

optional The file of the pest treated image. Example: /tmp/phpETFaOL

Patch

requires authentication

Patch a company pest treated.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=illo"\
    --form "pest_treated_attributes[attr]=value"\
    --form "icon_image_url=http://smarterlaunch.local/image1.jpg"\
    --form "photo_file=@/tmp/phpAZ6AML" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'name',
                'contents' => 'illo'
            ],
            [
                'name' => 'pest_treated_attributes[attr]',
                'contents' => 'value'
            ],
            [
                'name' => 'icon_image_url',
                'contents' => 'http://smarterlaunch.local/image1.jpg'
            ],
            [
                'name' => 'photo_file',
                'contents' => fopen('/tmp/phpAZ6AML', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('name', 'illo');
body.append('pest_treated_attributes[attr]', 'value');
body.append('icon_image_url', 'http://smarterlaunch.local/image1.jpg');
body.append('photo_file', document.querySelector('input[name="photo_file"]').files[0]);

fetch(url, {
    method: "PATCH",
    headers,
    body,
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/pests-treated/{pestTreated_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

pestTreated_uuid   string  optional  

The UUID of the pest_treated. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string  optional  

optional The name of the pest treated. Example : Pest Treated 1 Example: illo

pest_treated_attributes   object  optional  

optional The attributes of the pest treated.

icon_image_url   string  optional  

optional The image url of the pest treated. Example: http://smarterlaunch.local/image1.jpg

photo_file   file  optional  

optional The file of the pest treated image. Example: /tmp/phpAZ6AML

Delete

requires authentication

Delete a pest treated.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pests-treated/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/pests-treated/{pestTreated_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

pestTreated_uuid   string  optional  

The UUID of the pest_treated. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Products

Manage pest control products and chemicals used in treatments. Track product information for service documentation, inventory tracking, and compliance reporting.

List

requires authentication

Shows the list of company products with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products?page=7&page_size=8&sort_by=enim&sort_order=eum&search=magnam" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '7',
            'page_size' => '8',
            'sort_by' => 'enim',
            'sort_order' => 'eum',
            'search' => 'magnam',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products"
);

const params = {
    "page": "7",
    "page_size": "8",
    "sort_by": "enim",
    "sort_order": "eum",
    "search": "magnam",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/products

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 7

page_size   integer  optional  

optional The number of record you want per page. Example: 8

sort_by   string  optional  

optional The column name. Example: enim

sort_order   string  optional  

optional The order in which you want your records. Example: eum

search   string  optional  

optional The general search, it will find matching string. Example: magnam

Show

requires authentication

Show a single company product.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/products/{companyProduct_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyProduct_uuid   string  optional  

The UUID of the company_product. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a newly created company product.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"placeat\",
    \"product_attributes\": {
        \"attr\": \"value\"
    },
    \"label_image_url\": \"http:\\/\\/smarterlaunch.local\\/image1.jpg\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'placeat',
            'product_attributes' => [
                'attr' => 'value',
            ],
            'label_image_url' => 'http://smarterlaunch.local/image1.jpg',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "placeat",
    "product_attributes": {
        "attr": "value"
    },
    "label_image_url": "http:\/\/smarterlaunch.local\/image1.jpg"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/products

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the product. Example : Product 1 Example: placeat

product_attributes   object   

The attributes of the product.

label_image_url   string  optional  

optional The image url of the product. Example: http://smarterlaunch.local/image1.jpg

Update

requires authentication

Update a company product.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"ea\",
    \"product_attributes\": {
        \"attr\": \"value\"
    },
    \"label_image_url\": \"http:\\/\\/smarterlaunch.local\\/image1.jpg\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'ea',
            'product_attributes' => [
                'attr' => 'value',
            ],
            'label_image_url' => 'http://smarterlaunch.local/image1.jpg',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "ea",
    "product_attributes": {
        "attr": "value"
    },
    "label_image_url": "http:\/\/smarterlaunch.local\/image1.jpg"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/products/{companyProduct_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyProduct_uuid   string  optional  

The UUID of the company_product. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the product. Example : Product 1 Example: ea

product_attributes   object   

The attributes of the product.

label_image_url   string  optional  

optional The image url of the product. Example: http://smarterlaunch.local/image1.jpg

Patch

requires authentication

Patch a company product.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"eveniet\",
    \"product_attributes\": {
        \"attr\": \"value\"
    },
    \"label_image_url\": \"http:\\/\\/smarterlaunch.local\\/image1.jpg\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'eveniet',
            'product_attributes' => [
                'attr' => 'value',
            ],
            'label_image_url' => 'http://smarterlaunch.local/image1.jpg',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "eveniet",
    "product_attributes": {
        "attr": "value"
    },
    "label_image_url": "http:\/\/smarterlaunch.local\/image1.jpg"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/products/{companyProduct_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyProduct_uuid   string  optional  

The UUID of the company_product. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string  optional  

optional The name of the product. Example : Product 1 Example: eveniet

product_attributes   object  optional  

optional The attributes of the product.

label_image_url   string  optional  

optional The image url of the product. Example: http://smarterlaunch.local/image1.jpg

Delete

requires authentication

Delete a product.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/products/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/products/{companyProduct_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyProduct_uuid   string  optional  

The UUID of the company_product. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Property Locations

Define standardized property location types (interior, exterior, basement, attic, garage, etc.) used in service diagrams and treatment records.

List

requires authentication

Shows the list of property locations with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations?page=11&page_size=15&sort_by=optio&sort_order=suscipit&search=nesciunt" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '11',
            'page_size' => '15',
            'sort_by' => 'optio',
            'sort_order' => 'suscipit',
            'search' => 'nesciunt',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations"
);

const params = {
    "page": "11",
    "page_size": "15",
    "sort_by": "optio",
    "sort_order": "suscipit",
    "search": "nesciunt",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/property-locations

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 11

page_size   integer  optional  

optional The number of record you want per page. Example: 15

sort_by   string  optional  

optional The column name. Example: optio

sort_order   string  optional  

optional The order in which you want your records. Example: suscipit

search   string  optional  

optional The general search, it will find matching string. Example: nesciunt

Show

requires authentication

Show a single property location.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/property-locations/{propertyLocation_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

propertyLocation_uuid   string  optional  

The UUID of the property_location. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a newly created property location.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"dicta\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'dicta',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "dicta"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/property-locations

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the property location. Example : "Living Room" Example: dicta

Update

requires authentication

Update a property location.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"qui\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'qui',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "qui"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/property-locations/{propertyLocation_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

propertyLocation_uuid   string  optional  

The UUID of the property_location. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the property location. Example : "Living Room Updated" Example: qui

Patch

requires authentication

Patch a company property location.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"voluptatibus\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'voluptatibus',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "voluptatibus"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/property-locations/{propertyLocation_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

propertyLocation_uuid   string  optional  

The UUID of the property_location. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string  optional  

The name of the property location. Example : "Living Room Patched" Example: voluptatibus

Delete

requires authentication

Delete a property location.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/property-locations/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/property-locations/{propertyLocation_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

propertyLocation_uuid   string  optional  

The UUID of the property_location. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Proposal Templates

List

requires authentication

Shows the list of ProposalTemplates with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/proposals/templates" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/templates';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/templates"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/proposals/templates

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

page   integer  optional  

The page number. Example : 1 Example: 9

page_size   integer  optional  

The number of record you want per page. Example : 5 Example: 13

sort_by   string  optional  

The column name. Example : name Example: minus

sort_order   string  optional  

The order in which you want your records. Example : asc Example: et

search   string  optional  

The general search, it will find matching string. Example : home Example: consequuntur

string   string  optional  

The filter for proposal templates with company location in company_locations_uuid. Example: ["725d1dcd-54ad-3a8b-a28e-830c43d8ed6c", "b033658c-4532-3dd7-9be7-64433580eda6"]

Store

requires authentication

Store a newly created Proposal Template.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/proposals/templates" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_location_uuid\": \"71da6128-f400-3a3e-a5d1-77dc096e1ae8\",
    \"title\": \"omnis\",
    \"description\": \"Aspernatur quos laudantium sit rerum tempore aut.\",
    \"settings\": {
        \"attr\": \"value\"
    },
    \"service_plan_uuids\": [
        \"815d3d9c-f371-3781-8456-7e6954b5b0f5\",
        \"815d3d9c-f371-3781-8456-7e6954b5b0f5\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/templates';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_location_uuid' => '71da6128-f400-3a3e-a5d1-77dc096e1ae8',
            'title' => 'omnis',
            'description' => 'Aspernatur quos laudantium sit rerum tempore aut.',
            'settings' => [
                'attr' => 'value',
            ],
            'service_plan_uuids' => [
                '815d3d9c-f371-3781-8456-7e6954b5b0f5',
                '815d3d9c-f371-3781-8456-7e6954b5b0f5',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/templates"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "company_location_uuid": "71da6128-f400-3a3e-a5d1-77dc096e1ae8",
    "title": "omnis",
    "description": "Aspernatur quos laudantium sit rerum tempore aut.",
    "settings": {
        "attr": "value"
    },
    "service_plan_uuids": [
        "815d3d9c-f371-3781-8456-7e6954b5b0f5",
        "815d3d9c-f371-3781-8456-7e6954b5b0f5"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/proposals/templates

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

company_location_uuid   string   

The uuid of company location for proposal template. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 71da6128-f400-3a3e-a5d1-77dc096e1ae8

title   string   

The name of the proposal template. Example : Proposal Template 1 Example: omnis

description   string  optional  

The name of the proposal template. Example : This is a sample description Example: Aspernatur quos laudantium sit rerum tempore aut.

settings   object  optional  

The attributes of the proposal template.

service_plan_uuids   string[]  optional  

The list of ServicePlans to be associated to the ProposalTemplate.

Duplicate

requires authentication

Duplicate a proposal template

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/proposals/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6/duplicate" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6/duplicate';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6/duplicate"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/proposals/templates/{proposalTemplate_uuid}/duplicate

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposalTemplate_uuid   string  optional  

The UUID of the proposal_template. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Show

requires authentication

Show a single proposal template.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/proposals/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/proposals/templates/{proposalTemplate_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposalTemplate_uuid   string  optional  

The UUID of the proposal_template. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Update

requires authentication

Update a proposal template.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/proposals/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_location_uuid\": \"d37d849d-a34e-36ec-a5b4-0a14d95b48ef\",
    \"title\": \"aut\",
    \"description\": \"Reiciendis placeat earum quia est non provident in natus.\",
    \"settings\": {
        \"attr\": \"value\"
    },
    \"service_plan_uuids\": [
        \"815d3d9c-f371-3781-8456-7e6954b5b0f5\",
        \"815d3d9c-f371-3781-8456-7e6954b5b0f5\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_location_uuid' => 'd37d849d-a34e-36ec-a5b4-0a14d95b48ef',
            'title' => 'aut',
            'description' => 'Reiciendis placeat earum quia est non provident in natus.',
            'settings' => [
                'attr' => 'value',
            ],
            'service_plan_uuids' => [
                '815d3d9c-f371-3781-8456-7e6954b5b0f5',
                '815d3d9c-f371-3781-8456-7e6954b5b0f5',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "company_location_uuid": "d37d849d-a34e-36ec-a5b4-0a14d95b48ef",
    "title": "aut",
    "description": "Reiciendis placeat earum quia est non provident in natus.",
    "settings": {
        "attr": "value"
    },
    "service_plan_uuids": [
        "815d3d9c-f371-3781-8456-7e6954b5b0f5",
        "815d3d9c-f371-3781-8456-7e6954b5b0f5"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/proposals/templates/{proposalTemplate_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposalTemplate_uuid   string  optional  

The UUID of the proposal_template. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

company_location_uuid   string   

The uuid of company location for proposal template. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: d37d849d-a34e-36ec-a5b4-0a14d95b48ef

title   string   

The name of the proposal template. Example : Proposal Template 1 Example: aut

description   string  optional  

The name of the proposal template. Example : This is a sample description Example: Reiciendis placeat earum quia est non provident in natus.

settings   object  optional  

The attributes of the proposal template.

service_plan_uuids   string[]  optional  

The list of ServicePlans to be associated to the ProposalTemplate.

Patch

requires authentication

Patch a company proposal template.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/proposals/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_location_uuid\": \"51414968-5bc1-3005-ad24-f94b3e5a1420\",
    \"title\": \"repellendus\",
    \"description\": \"Et et iste ducimus repudiandae.\",
    \"settings\": {
        \"attr\": \"value\"
    },
    \"service_plan_uuids\": [
        \"815d3d9c-f371-3781-8456-7e6954b5b0f5\",
        \"815d3d9c-f371-3781-8456-7e6954b5b0f5\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_location_uuid' => '51414968-5bc1-3005-ad24-f94b3e5a1420',
            'title' => 'repellendus',
            'description' => 'Et et iste ducimus repudiandae.',
            'settings' => [
                'attr' => 'value',
            ],
            'service_plan_uuids' => [
                '815d3d9c-f371-3781-8456-7e6954b5b0f5',
                '815d3d9c-f371-3781-8456-7e6954b5b0f5',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "company_location_uuid": "51414968-5bc1-3005-ad24-f94b3e5a1420",
    "title": "repellendus",
    "description": "Et et iste ducimus repudiandae.",
    "settings": {
        "attr": "value"
    },
    "service_plan_uuids": [
        "815d3d9c-f371-3781-8456-7e6954b5b0f5",
        "815d3d9c-f371-3781-8456-7e6954b5b0f5"
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/proposals/templates/{proposalTemplate_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposalTemplate_uuid   string  optional  

The UUID of the proposal_template. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

company_location_uuid   string  optional  

The uuid of company location for proposal template. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 51414968-5bc1-3005-ad24-f94b3e5a1420

title   string  optional  

The name of the proposal template. Example : Proposal Template 1 Example: repellendus

description   string  optional  

The name of the proposal template. Example : This is a sample description Example: Et et iste ducimus repudiandae.

settings   object  optional  

The attributes of the proposal template.

service_plan_uuids   string[]  optional  

The list of ServicePlans to be associated to the ProposalTemplate.

Delete

requires authentication

Delete a proposal template.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/proposals/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/proposals/templates/{proposalTemplate_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposalTemplate_uuid   string  optional  

The UUID of the proposal_template. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Proposals

Create and manage pest control service proposals. Handle proposal creation, customer acceptance/decline with digital signatures, pricing selection, custom form submissions, activity tracking, file attachments, and CRM synchronization.

Get

requires authentication

Display the selected proposal.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/preview" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/preview';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/preview"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/preview

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Get client IP Address and Date time prior to accepting the proposal

requires authentication

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/get-ip-datetime" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/get-ip-datetime';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/get-ip-datetime"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/get-ip-datetime

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store Proposal Inquiry

requires authentication

Send inquiry request from users

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/support-request" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"support_type\": \"\'General Inquiry\'\",
    \"screenshots_url\": [
        \"https:\\/\\/example.net\\/image1.jpg\",
        \"https:\\/\\/example.net\\/image1.png\"
    ],
    \"description\": \"\'I cannot access documents. Please help.\'\",
    \"no_attachments\": false
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/support-request';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'support_type' => '\'General Inquiry\'',
            'screenshots_url' => [
                'https://example.net/image1.jpg',
                'https://example.net/image1.png',
            ],
            'description' => '\'I cannot access documents. Please help.\'',
            'no_attachments' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/support-request"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "support_type": "'General Inquiry'",
    "screenshots_url": [
        "https:\/\/example.net\/image1.jpg",
        "https:\/\/example.net\/image1.png"
    ],
    "description": "'I cannot access documents. Please help.'",
    "no_attachments": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/support-request

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

support_type   string   

The support type. Example: 'General Inquiry'

client_detail   object  optional  
screenshots_url   string[]   

The screenshots URL string.

description   string   

The support request details. Example: 'I cannot access documents. Please help.'

no_attachments   boolean   

Check if request has attachments. Example: false

Upload

requires authentication

Upload photos for Cover Letter or Photo Layout pages

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/{supportRequestUuid}/support-request-upload" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"screenshot_url\": \"https:\\/\\/example.net\\/test.png\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/{supportRequestUuid}/support-request-upload';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'screenshot_url' => 'https://example.net/test.png',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/{supportRequestUuid}/support-request-upload"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "screenshot_url": "https:\/\/example.net\/test.png"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/{supportRequestUuid}/support-request-upload

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

screenshot_url   string   

The url of the attached image. Example: https://example.net/test.png

Accept and Sign

requires authentication

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/accept-sign" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"signature_photo_url\": \"http:\\/\\/www.altenwerth.org\\/similique-iste-et-iste-qui-voluptatem-labore\",
    \"proposal_pdf_url\": \"https:\\/\\/swaniawski.biz\\/quibusdam-sit-distinctio-est-ex-fugiat-ipsa-recusandae.html\",
    \"auth_code\": \"magni\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/accept-sign';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'signature_photo_url' => 'http://www.altenwerth.org/similique-iste-et-iste-qui-voluptatem-labore',
            'proposal_pdf_url' => 'https://swaniawski.biz/quibusdam-sit-distinctio-est-ex-fugiat-ipsa-recusandae.html',
            'auth_code' => 'magni',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/accept-sign"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "signature_photo_url": "http:\/\/www.altenwerth.org\/similique-iste-et-iste-qui-voluptatem-labore",
    "proposal_pdf_url": "https:\/\/swaniawski.biz\/quibusdam-sit-distinctio-est-ex-fugiat-ipsa-recusandae.html",
    "auth_code": "magni"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/accept-sign

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

accepted_confirmation_uuids   object  optional  
signature_photo_url   string   

The image url. Example: http://www.altenwerth.org/similique-iste-et-iste-qui-voluptatem-labore

proposal_pdf_url   string   

The pdf file url. Example: https://swaniawski.biz/quibusdam-sit-distinctio-est-ex-fugiat-ipsa-recusandae.html

auth_code   string  optional  

Example: magni

Replicate Signature

requires authentication

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/replace-signature" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"signature_photo_url\": \"http:\\/\\/bergstrom.com\\/ratione-aut-est-nemo-minus-laboriosam-similique.html\",
    \"proposal_pdf_url\": \"http:\\/\\/www.klocko.org\\/mollitia-recusandae-accusantium-similique-soluta-quis-deserunt-consequatur\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/replace-signature';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'signature_photo_url' => 'http://bergstrom.com/ratione-aut-est-nemo-minus-laboriosam-similique.html',
            'proposal_pdf_url' => 'http://www.klocko.org/mollitia-recusandae-accusantium-similique-soluta-quis-deserunt-consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/replace-signature"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "signature_photo_url": "http:\/\/bergstrom.com\/ratione-aut-est-nemo-minus-laboriosam-similique.html",
    "proposal_pdf_url": "http:\/\/www.klocko.org\/mollitia-recusandae-accusantium-similique-soluta-quis-deserunt-consequatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/replace-signature

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

signature_photo_url   string   

The image url. Example: http://bergstrom.com/ratione-aut-est-nemo-minus-laboriosam-similique.html

proposal_pdf_url   string   

The pdf file url. Example: http://www.klocko.org/mollitia-recusandae-accusantium-similique-soluta-quis-deserunt-consequatur

Update Attached Document

requires authentication

Patch the specified proposal.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/update-attachment" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "documentIndex=2799390.8577753"\
    --form "keyName=attached_documents"\
    --form "documentFile=@/tmp/phpn86weN" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/update-attachment';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'documentIndex',
                'contents' => '2799390.8577753'
            ],
            [
                'name' => 'keyName',
                'contents' => 'attached_documents'
            ],
            [
                'name' => 'documentFile',
                'contents' => fopen('/tmp/phpn86weN', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/update-attachment"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('documentIndex', '2799390.8577753');
body.append('keyName', 'attached_documents');
body.append('documentFile', document.querySelector('input[name="documentFile"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/update-attachment

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

documentFile   file  optional  

The updated document file. Example : WDIIR.pdf Example: /tmp/phpn86weN

documentIndex   number  optional  

The document index number. Example : 1 Example: 2799390.8577753

keyName   string  optional  

Example: attached_documents

Must be one of:
  • attached_documents
  • attached_documents_addendum

Log Video Clicked

requires authentication

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/video-clicked" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"video_type\": \"id\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/video-clicked';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'video_type' => 'id',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/video-clicked"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "video_type": "id"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/video-clicked

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

video_type   'service'  optional  

| 'screen_recording' Example: id

Decline

requires authentication

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/decline"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/decline

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Update Selected Pricing

requires authentication

Patch the specified proposal.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/update-selected-pricing" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"proposal_values\": []
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/update-selected-pricing';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'proposal_values' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/update-selected-pricing"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "proposal_values": []
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/update-selected-pricing

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

proposal_values   object  optional  

The collected data of the proposal in object format. Example : {"price":1000.00,"currency":"$"}

Submit Customer Forms

requires authentication

Patch the specified proposal.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/customer-forms" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"formValues\": [],
    \"submittedForms\": [],
    \"proposal_values\": []
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/customer-forms';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'formValues' => [],
            'submittedForms' => [],
            'proposal_values' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/customer-forms"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "formValues": [],
    "submittedForms": [],
    "proposal_values": []
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/proposals/{proposal_uuid}/customer-forms

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

formValues   object   
attachedDocuments   object  optional  
submittedForms   object   
proposal_values   object  optional  

The collected data of the proposal in object format. Example : {"price":1000.00,"currency":"$"}

List

requires authentication

Shows the list of proposal with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/proposals?page=10&page_size=10&sort_by=reprehenderit&sort_order=laudantium&search=qui" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ignore_cached\": false,
    \"date_range_start\": \"2025-12-08T19:12:42\",
    \"date_range_end\": \"2026-06-04\",
    \"timezone\": \"America\\/Argentina\\/Jujuy\",
    \"company_location_uuid\": \"a34fb0a0-3a86-3a9a-a393-59aea8688844\",
    \"team_uuid\": \"62f46e97-a483-3bd3-8635-69bc5b305541\",
    \"user_uuid\": \"19116d6d-b417-30d6-9937-90ac511afa9c\",
    \"template_uuid\": \"8a8401dd-1306-3232-bb56-817702126fe5\",
    \"status_uuid\": [
        \"45c17efa-475e-38f9-a783-6d677a1a08fe\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '10',
            'page_size' => '10',
            'sort_by' => 'reprehenderit',
            'sort_order' => 'laudantium',
            'search' => 'qui',
        ],
        'json' => [
            'ignore_cached' => false,
            'date_range_start' => '2025-12-08T19:12:42',
            'date_range_end' => '2026-06-04',
            'timezone' => 'America/Argentina/Jujuy',
            'company_location_uuid' => 'a34fb0a0-3a86-3a9a-a393-59aea8688844',
            'team_uuid' => '62f46e97-a483-3bd3-8635-69bc5b305541',
            'user_uuid' => '19116d6d-b417-30d6-9937-90ac511afa9c',
            'template_uuid' => '8a8401dd-1306-3232-bb56-817702126fe5',
            'status_uuid' => [
                '45c17efa-475e-38f9-a783-6d677a1a08fe',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals"
);

const params = {
    "page": "10",
    "page_size": "10",
    "sort_by": "reprehenderit",
    "sort_order": "laudantium",
    "search": "qui",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ignore_cached": false,
    "date_range_start": "2025-12-08T19:12:42",
    "date_range_end": "2026-06-04",
    "timezone": "America\/Argentina\/Jujuy",
    "company_location_uuid": "a34fb0a0-3a86-3a9a-a393-59aea8688844",
    "team_uuid": "62f46e97-a483-3bd3-8635-69bc5b305541",
    "user_uuid": "19116d6d-b417-30d6-9937-90ac511afa9c",
    "template_uuid": "8a8401dd-1306-3232-bb56-817702126fe5",
    "status_uuid": [
        "45c17efa-475e-38f9-a783-6d677a1a08fe"
    ]
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/proposals

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

search_by   string  optional  

The specific field to search within. Options: customer_name, title, description. Example : customer_name Example: accusantium

company_location_uuid   string  optional  

The UUID of company location. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: c0bbfd27-97d6-3578-9472-06677644ad25

company_location_uuids   string  optional  

string[] The UUID of company location. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: et

status_uuid   string  optional  

string[] The UUID of proposal status. Example : ["815d3d9c-f371-3781-8456-7e6954b5b0f5"] Example: 903825e2-08a8-3934-9c25-1e54c40eda44

customer_uuid   string  optional  

The UUID of a customer. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: f2e148a5-4972-3367-8aae-7daad23d1fdd

include_fields   string  optional  

string[] Optionally include related data for the proposal. Example : "company" Example: et

user_uuid   string  optional  

Filter by the user that created proposals. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: f1effcec-23f7-3572-9199-a77396d57165

timezone   string  optional  

Optional timezone for date filtering. Falls back to user's favorite location timezone, then MST. Example : "America/New_York" Example: Africa/Lusaka

date_range_start   string  optional  

Start date for filtering proposals. Example : "2024-08-01" Example: aut

date_range_end   string  optional  

End date for filtering proposals. Example : "2024-08-13" Example: blanditiis

date_range_type   string  optional  

Type of date to filter by. Options: created_at, updated_at. Example : "created_at" Example: dolor

tag_uuids   string  optional  

string[] Filter proposals by tag UUIDs. Example : ["815d3d9c-f371-3781-8456-7e6954b5b0f5"] Example: facilis

Query Parameters

page   integer  optional  

optional The page number. Example: 10

page_size   integer  optional  

optional The number of record you want per page. Example: 10

sort_by   string  optional  

optional The column name. Example: reprehenderit

sort_order   string  optional  

optional The order in which you want your records. Example: laudantium

search   string  optional  

optional The general search, it will find matching string. Example: qui

Body Parameters

include_fields   string[]  optional  
ignore_cached   boolean  optional  

Example: false

date_range_start   string  optional  

Must be a valid date. Example: 2025-12-08T19:12:42

date_range_end   string  optional  

Must be a valid date. Must be a date after or equal to date_range_start. Example: 2026-06-04

timezone   string  optional  

Must be a valid time zone, such as Africa/Accra. Example: America/Argentina/Jujuy

company_location_uuid   string  optional  

Must be a valid UUID. Example: a34fb0a0-3a86-3a9a-a393-59aea8688844

team_uuid   string  optional  

Must be a valid UUID. Example: 62f46e97-a483-3bd3-8635-69bc5b305541

user_uuid   string  optional  

Must be a valid UUID. Example: 19116d6d-b417-30d6-9937-90ac511afa9c

template_uuid   string  optional  

Must be a valid UUID. Example: 8a8401dd-1306-3232-bb56-817702126fe5

status_uuid   string[]  optional  

Must be a valid UUID.

Export List

requires authentication

Returns a CSV file of list of filtered proposal list.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/proposals/export-list?page=6&page_size=13&sort_by=voluptatem&sort_order=nihil&search=est" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/export-list';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '6',
            'page_size' => '13',
            'sort_by' => 'voluptatem',
            'sort_order' => 'nihil',
            'search' => 'est',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/export-list"
);

const params = {
    "page": "6",
    "page_size": "13",
    "sort_by": "voluptatem",
    "sort_order": "nihil",
    "search": "est",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/proposals/export-list

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_location_uuid   string  optional  

The UUID of company location. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 58a9450b-b5d7-3a6e-a4ff-db984ae0fd3f

company_location_uuids   string  optional  

string[] The UUID of company location. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: enim

status_uuid   string  optional  

The UUID of proposal status. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: f7e03c96-8322-3483-ad90-2fc330cf7f70

customer_uuid   string  optional  

The UUID of a customer. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 8bb16a38-67a5-361b-9d4b-ed89d07b46e5

include_fields   string  optional  

string[] Optionally include related data for the proposal. Example : "company" Example: dolorem

user_uuid   string  optional  

Filter by the user that created proposals. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: e235f25b-3141-301e-99ce-e7251b578a1b

Query Parameters

page   integer  optional  

optional The page number. Example: 6

page_size   integer  optional  

optional The number of record you want per page. Example: 13

sort_by   string  optional  

optional The column name. Example: voluptatem

sort_order   string  optional  

optional The order in which you want your records. Example: nihil

search   string  optional  

optional The general search, it will find matching string. Example: est

Summary

requires authentication

Shows the summary of proposal. Returns number of items per Proposal status.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/proposals/summary" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/summary';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/summary"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/proposals/summary

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Get

requires authentication

Display the selected proposal.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/proposals/{proposal_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

List of Activity Logs

requires authentication

Shows the list of proposal's activity logs with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity-logs?page=15&page_size=2&sort_by=consequuntur&sort_order=ut&search=nisi" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity-logs';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '15',
            'page_size' => '2',
            'sort_by' => 'consequuntur',
            'sort_order' => 'ut',
            'search' => 'nisi',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity-logs"
);

const params = {
    "page": "15",
    "page_size": "2",
    "sort_by": "consequuntur",
    "sort_order": "ut",
    "search": "nisi",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/proposals/{proposal_uuid}/activity-logs

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 15

page_size   integer  optional  

optional The number of record you want per page. Example: 2

sort_by   string  optional  

optional The column name. Example: consequuntur

sort_order   string  optional  

optional The order in which you want your records. Example: ut

search   string  optional  

optional The general search, it will find matching string. Example: nisi

Body Parameters

include_fields   object  optional  

Get the events associated with a specific proposal activity

requires authentication

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity/1/events" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity/1/events';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity/1/events"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/proposals/{proposal_uuid}/activity/{activity_uuid}/events

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Download TARF XML

requires authentication

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/tarf-xml-url" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/tarf-xml-url';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/tarf-xml-url"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/proposals/{proposal_uuid}/tarf-xml-url

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Download California WDO XML

requires authentication

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/cali-wdo-report-url" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/cali-wdo-report-url';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/cali-wdo-report-url"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/proposals/{proposal_uuid}/cali-wdo-report-url

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Create

requires authentication

Store a newly created proposal activity entry

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity-logs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"description\": \"Be sure to follow-up with the customer.\'\",
    \"remind_at\": \"07\\/23\\/2024\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity-logs';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'description' => 'Be sure to follow-up with the customer.\'',
            'remind_at' => '07/23/2024',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity-logs"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "description": "Be sure to follow-up with the customer.'",
    "remind_at": "07\/23\/2024"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/proposals/{proposal_uuid}/activity-logs

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

description   string   

The description of activity entry. Example: Be sure to follow-up with the customer.'

remind_at   string   

The date of reminder through email. Example: 07/23/2024

action

requires authentication

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity-logs/1/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity-logs/1/1';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity-logs/1/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/proposals/{proposal_uuid}/activity-logs/{activityEntryUuid}/{action}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Create

requires authentication

Store a newly created proposal.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/proposals" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"doloremque\",
    \"description\": \"Pariatur qui et provident est excepturi deleniti soluta.\",
    \"company_location_uuid\": \"febec167-7ce0-31f4-8104-6f0045eb30fb\",
    \"customer_uuid\": \"3ba139fb-11fa-3202-8a99-eeff8ca6c664\",
    \"customer_address_uuid\": \"f33852dd-3f48-3318-926f-d8927565df30\",
    \"status_uuid\": \"6013e118-694d-3246-bbd5-f8579d471168\",
    \"service_plan_uuids\": [
        \"autem\"
    ],
    \"proposal_values\": [],
    \"proposal_template_uuid\": \"09692398-b6ec-3447-a596-14912bab5112\",
    \"metadata\": []
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'doloremque',
            'description' => 'Pariatur qui et provident est excepturi deleniti soluta.',
            'company_location_uuid' => 'febec167-7ce0-31f4-8104-6f0045eb30fb',
            'customer_uuid' => '3ba139fb-11fa-3202-8a99-eeff8ca6c664',
            'customer_address_uuid' => 'f33852dd-3f48-3318-926f-d8927565df30',
            'status_uuid' => '6013e118-694d-3246-bbd5-f8579d471168',
            'service_plan_uuids' => [
                'autem',
            ],
            'proposal_values' => [],
            'proposal_template_uuid' => '09692398-b6ec-3447-a596-14912bab5112',
            'metadata' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "doloremque",
    "description": "Pariatur qui et provident est excepturi deleniti soluta.",
    "company_location_uuid": "febec167-7ce0-31f4-8104-6f0045eb30fb",
    "customer_uuid": "3ba139fb-11fa-3202-8a99-eeff8ca6c664",
    "customer_address_uuid": "f33852dd-3f48-3318-926f-d8927565df30",
    "status_uuid": "6013e118-694d-3246-bbd5-f8579d471168",
    "service_plan_uuids": [
        "autem"
    ],
    "proposal_values": [],
    "proposal_template_uuid": "09692398-b6ec-3447-a596-14912bab5112",
    "metadata": []
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/proposals

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

title   string   

The title of the proposal. Example : Pest Route Initial Proposal Example: doloremque

description   string  optional  

The paragraph describing the proposal. Example: Pariatur qui et provident est excepturi deleniti soluta.

company_location_uuid   string   

The UUID of user's company location. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: febec167-7ce0-31f4-8104-6f0045eb30fb

customer_uuid   string   

The UUID of customer you wish to send the proposal. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 3ba139fb-11fa-3202-8a99-eeff8ca6c664

customer_address_uuid   string   

The UUID of customer's address. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: f33852dd-3f48-3318-926f-d8927565df30

status_uuid   string   

The UUID of proposal status. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 6013e118-694d-3246-bbd5-f8579d471168

service_plan_uuids   string[]  optional  

The list of ServicePlan's UUID you want to add in the proposal. Example : ["815d3d9c-f371-3781-8456-7e6954b5b0f5", "815d3d9c-f371-3781-8456-7e6954b5b0f5"]

proposal_values   object  optional  

The collected data of the proposal in object format. Example : {"price":1000.00,"currency":"$"}

proposal_template_uuid   string   

The UUID of proposal template. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 09692398-b6ec-3447-a596-14912bab5112

metadata   object  optional  

Optional metadata for tracking and custom data. Limitations: Maximum 20 keys at root level, keys max 100 characters, values max 1000 characters, max 3 levels of nesting. Example : {"campaign_id":"summer2024","source":"google_ads","lead_score":85}

Duplicate

requires authentication

This endpoint lets user to duplicate proposal and set into a draft mode

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/duplicate" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/duplicate';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/duplicate"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/proposals/{proposal_uuid}/duplicate

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Upload Review Photo

requires authentication

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/upload-review-photo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "type='cover'."\
    --form "layout='Tiled'."\
    --form "photo=@/tmp/phpREIyNI" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/upload-review-photo';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'type',
                'contents' => ''cover'.'
            ],
            [
                'name' => 'layout',
                'contents' => ''Tiled'.'
            ],
            [
                'name' => 'photo',
                'contents' => fopen('/tmp/phpREIyNI', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/upload-review-photo"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('type', ''cover'.');
body.append('layout', ''Tiled'.');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/proposals/{proposal_uuid}/upload-review-photo

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

photo   file   

The image file. Example: /tmp/phpREIyNI

type   enum  optional  

'cover' | 'photos' required The photo type. Example: 'cover'.

layout   enum  optional  

'Tiled' | 'Stacked' required The photo type. Example: 'Tiled'.

Resync document

requires authentication

Resync document the specified proposal.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/push-to-crm" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"voluptate\",
    \"description\": \"Eius rerum et quae est aspernatur nulla in.\",
    \"company_location_uuid\": \"c581514b-207c-3c7d-bae4-e5165bfd46ef\",
    \"customer_uuid\": \"bbaeea84-7d49-3f98-b832-3655cb3d6d92\",
    \"customer_address_uuid\": \"366bf105-de63-3e8d-8a17-f0cc2d942c01\",
    \"status_uuid\": \"b1e808d4-cb51-3305-a94a-ef0978c35c8a\",
    \"service_plan_uuids\": [
        \"voluptatem\"
    ],
    \"proposal_values\": [],
    \"proposal_template_uuid\": \"e9f93f6f-92ee-39ed-821a-809e565609c1\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/push-to-crm';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'voluptate',
            'description' => 'Eius rerum et quae est aspernatur nulla in.',
            'company_location_uuid' => 'c581514b-207c-3c7d-bae4-e5165bfd46ef',
            'customer_uuid' => 'bbaeea84-7d49-3f98-b832-3655cb3d6d92',
            'customer_address_uuid' => '366bf105-de63-3e8d-8a17-f0cc2d942c01',
            'status_uuid' => 'b1e808d4-cb51-3305-a94a-ef0978c35c8a',
            'service_plan_uuids' => [
                'voluptatem',
            ],
            'proposal_values' => [],
            'proposal_template_uuid' => 'e9f93f6f-92ee-39ed-821a-809e565609c1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/push-to-crm"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "voluptate",
    "description": "Eius rerum et quae est aspernatur nulla in.",
    "company_location_uuid": "c581514b-207c-3c7d-bae4-e5165bfd46ef",
    "customer_uuid": "bbaeea84-7d49-3f98-b832-3655cb3d6d92",
    "customer_address_uuid": "366bf105-de63-3e8d-8a17-f0cc2d942c01",
    "status_uuid": "b1e808d4-cb51-3305-a94a-ef0978c35c8a",
    "service_plan_uuids": [
        "voluptatem"
    ],
    "proposal_values": [],
    "proposal_template_uuid": "e9f93f6f-92ee-39ed-821a-809e565609c1"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/proposals/{proposal_uuid}/push-to-crm

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

title   string  optional  

The title of the proposal. Example : Pest Route Initial Proposal Example: voluptate

description   string  optional  

The paragraph describing the proposal. Example: Eius rerum et quae est aspernatur nulla in.

company_location_uuid   string  optional  

The UUID of user's company location. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: c581514b-207c-3c7d-bae4-e5165bfd46ef

customer_uuid   string  optional  

The UUID of customer you wish to send the proposal. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: bbaeea84-7d49-3f98-b832-3655cb3d6d92

customer_address_uuid   string  optional  

The UUID of customer's address. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 366bf105-de63-3e8d-8a17-f0cc2d942c01

status_uuid   string  optional  

The UUID of proposal status. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: b1e808d4-cb51-3305-a94a-ef0978c35c8a

service_plan_uuids   string[]  optional  

The list of ServicePlan's UUID you want to add in the proposal. Example : ['815d3d9c-f371-3781-8456-7e6954b5b0f5', '815d3d9c-f371-3781-8456-7e6954b5b0f5']

proposal_values   object  optional  

The collected data of the proposal in object format. Example : {"price":1000.00,"currency":"$"}

proposal_template_uuid   string   

The UUID of proposal template. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: e9f93f6f-92ee-39ed-821a-809e565609c1

Update

requires authentication

Updates the specified proposal.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"\\\"Pest Route Initial Proposal\\\"\",
    \"description\": \"\\\"Lorem, ipsum dolor sit amet consectetur adipisicing elit.\\\"\",
    \"company_location_uuid\": \"804369f0-754f-3ac0-9893-8791b44b212a\",
    \"customer_uuid\": \"7766c640-0f78-30bf-b2c9-0e99c7eb2590\",
    \"customer_address_uuid\": \"a091ba18-1887-38c1-879d-f8f0ca2c17a5\",
    \"status_uuid\": \"f38ef51e-9806-394d-8d91-3b6b7ff60a8c\",
    \"service_plan_uuids\": [
        \"tempore\"
    ],
    \"proposal_values\": [],
    \"proposal_template_uuid\": \"3e1437f5-fc22-34b9-88c4-3e3c584b185e\",
    \"expire_at\": \"2025-12-08T19:12:42\",
    \"tag_uuids\": [
        \"d11af7f6-5def-3a23-89fc-48d389dfa8f3\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => '"Pest Route Initial Proposal"',
            'description' => '"Lorem, ipsum dolor sit amet consectetur adipisicing elit."',
            'company_location_uuid' => '804369f0-754f-3ac0-9893-8791b44b212a',
            'customer_uuid' => '7766c640-0f78-30bf-b2c9-0e99c7eb2590',
            'customer_address_uuid' => 'a091ba18-1887-38c1-879d-f8f0ca2c17a5',
            'status_uuid' => 'f38ef51e-9806-394d-8d91-3b6b7ff60a8c',
            'service_plan_uuids' => [
                'tempore',
            ],
            'proposal_values' => [],
            'proposal_template_uuid' => '3e1437f5-fc22-34b9-88c4-3e3c584b185e',
            'expire_at' => '2025-12-08T19:12:42',
            'tag_uuids' => [
                'd11af7f6-5def-3a23-89fc-48d389dfa8f3',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "\"Pest Route Initial Proposal\"",
    "description": "\"Lorem, ipsum dolor sit amet consectetur adipisicing elit.\"",
    "company_location_uuid": "804369f0-754f-3ac0-9893-8791b44b212a",
    "customer_uuid": "7766c640-0f78-30bf-b2c9-0e99c7eb2590",
    "customer_address_uuid": "a091ba18-1887-38c1-879d-f8f0ca2c17a5",
    "status_uuid": "f38ef51e-9806-394d-8d91-3b6b7ff60a8c",
    "service_plan_uuids": [
        "tempore"
    ],
    "proposal_values": [],
    "proposal_template_uuid": "3e1437f5-fc22-34b9-88c4-3e3c584b185e",
    "expire_at": "2025-12-08T19:12:42",
    "tag_uuids": [
        "d11af7f6-5def-3a23-89fc-48d389dfa8f3"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/proposals/{proposal_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

title   string   

The title of the proposal. Example: "Pest Route Initial Proposal"

description   string  optional  

The paragraph describing the proposal. Example: "Lorem, ipsum dolor sit amet consectetur adipisicing elit."

company_location_uuid   string   

The UUID of user's company location. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 804369f0-754f-3ac0-9893-8791b44b212a

customer_uuid   string   

The UUID of customer you wish to send the proposal. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 7766c640-0f78-30bf-b2c9-0e99c7eb2590

customer_address_uuid   string   

The UUID of customer's address. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: a091ba18-1887-38c1-879d-f8f0ca2c17a5

status_uuid   string   

The UUID of proposal status. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: f38ef51e-9806-394d-8d91-3b6b7ff60a8c

service_plan_uuids   string[]  optional  

The list of ServicePlan's UUID you want to add in the proposal. Example : ['815d3d9c-f371-3781-8456-7e6954b5b0f5', '815d3d9c-f371-3781-8456-7e6954b5b0f5']

proposal_values   object  optional  

The collected data of the proposal in object format. Example : {"price":1000.00,"currency":"$"}

settings   object  optional  
proposal_template_uuid   string   

The UUID of proposal template. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 3e1437f5-fc22-34b9-88c4-3e3c584b185e

include_fields   object  optional  
expire_at   string  optional  

Must be a valid date. Example: 2025-12-08T19:12:42

tag_uuids   string[]  optional  

Must be a valid UUID.

Update

requires authentication

Update a proposal activity entry

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity-logs/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"description\": \"Be sure to follow-up with the customer.\'\",
    \"remind_at\": \"07\\/23\\/2024\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity-logs/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'description' => 'Be sure to follow-up with the customer.\'',
            'remind_at' => '07/23/2024',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity-logs/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "description": "Be sure to follow-up with the customer.'",
    "remind_at": "07\/23\/2024"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/proposals/{proposal_uuid}/activity-logs/{activityEntryUuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

description   string   

The description of activity entry. Example: Be sure to follow-up with the customer.'

remind_at   string   

The date of reminder through email. Example: 07/23/2024

Patch

requires authentication

Patch the specified proposal.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"dolor\",
    \"description\": \"Aliquid repellat fuga aut error excepturi veniam accusantium.\",
    \"company_location_uuid\": \"be69e6ca-937c-337e-bb45-f444e1ca6cbd\",
    \"customer_uuid\": \"37586815-cf49-380f-a334-3317b81b8cb1\",
    \"customer_address_uuid\": \"cc00bef4-4c35-321d-b074-b1b4477a76b9\",
    \"status_uuid\": \"18338f50-e1b0-385e-a75a-66549153a495\",
    \"service_plan_uuids\": [
        \"molestiae\"
    ],
    \"proposal_values\": [],
    \"proposal_template_uuid\": \"72ee672c-6edb-367e-8c5d-f6b46a8aab42\",
    \"expire_at\": \"2025-12-08T19:12:42\",
    \"tag_uuids\": [
        \"35102012-4b35-3fd5-9cab-72f85ed87985\"
    ],
    \"metadata\": []
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'dolor',
            'description' => 'Aliquid repellat fuga aut error excepturi veniam accusantium.',
            'company_location_uuid' => 'be69e6ca-937c-337e-bb45-f444e1ca6cbd',
            'customer_uuid' => '37586815-cf49-380f-a334-3317b81b8cb1',
            'customer_address_uuid' => 'cc00bef4-4c35-321d-b074-b1b4477a76b9',
            'status_uuid' => '18338f50-e1b0-385e-a75a-66549153a495',
            'service_plan_uuids' => [
                'molestiae',
            ],
            'proposal_values' => [],
            'proposal_template_uuid' => '72ee672c-6edb-367e-8c5d-f6b46a8aab42',
            'expire_at' => '2025-12-08T19:12:42',
            'tag_uuids' => [
                '35102012-4b35-3fd5-9cab-72f85ed87985',
            ],
            'metadata' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "dolor",
    "description": "Aliquid repellat fuga aut error excepturi veniam accusantium.",
    "company_location_uuid": "be69e6ca-937c-337e-bb45-f444e1ca6cbd",
    "customer_uuid": "37586815-cf49-380f-a334-3317b81b8cb1",
    "customer_address_uuid": "cc00bef4-4c35-321d-b074-b1b4477a76b9",
    "status_uuid": "18338f50-e1b0-385e-a75a-66549153a495",
    "service_plan_uuids": [
        "molestiae"
    ],
    "proposal_values": [],
    "proposal_template_uuid": "72ee672c-6edb-367e-8c5d-f6b46a8aab42",
    "expire_at": "2025-12-08T19:12:42",
    "tag_uuids": [
        "35102012-4b35-3fd5-9cab-72f85ed87985"
    ],
    "metadata": []
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/proposals/{proposal_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

title   string  optional  

The title of the proposal. Example : Pest Route Initial Proposal Example: dolor

description   string  optional  

The paragraph describing the proposal. Example: Aliquid repellat fuga aut error excepturi veniam accusantium.

company_location_uuid   string  optional  

The UUID of user's company location. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: be69e6ca-937c-337e-bb45-f444e1ca6cbd

customer_uuid   string  optional  

The UUID of customer you wish to send the proposal. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 37586815-cf49-380f-a334-3317b81b8cb1

customer_address_uuid   string  optional  

The UUID of customer's address. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: cc00bef4-4c35-321d-b074-b1b4477a76b9

status_uuid   string  optional  

The UUID of proposal status. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 18338f50-e1b0-385e-a75a-66549153a495

service_plan_uuids   string[]  optional  

The list of ServicePlan's UUID you want to add in the proposal. Example : ['815d3d9c-f371-3781-8456-7e6954b5b0f5', '815d3d9c-f371-3781-8456-7e6954b5b0f5']

proposal_values   object  optional  

The collected data of the proposal in object format. Example : {"price":1000.00,"currency":"$"}

settings   object  optional  
proposal_template_uuid   string   

The UUID of proposal template. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 72ee672c-6edb-367e-8c5d-f6b46a8aab42

include_fields   object  optional  
expire_at   string  optional  

Must be a valid date. Example: 2025-12-08T19:12:42

tag_uuids   string[]  optional  

Must be a valid UUID.

metadata   object  optional  

Optional metadata for tracking and custom data. When updating, new keys are added and existing keys are updated while preserving other keys. Limitations: Maximum 20 keys at root level, keys max 100 characters, values max 1000 characters, max 3 levels of nesting. Example : {"campaign_id":"fall2024","new_field":"value"}

Share

requires authentication

Send proposal via email

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/share" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"recipients\": [
        \"johnsmith@example.net\",
        \"anasmith@example.net\"
    ],
    \"subject\": \"\\\"Pest Route Initial Proposal\\\"\",
    \"body\": \"\\\"Pest Route Initial Proposal\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/share';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'recipients' => [
                'johnsmith@example.net',
                'anasmith@example.net',
            ],
            'subject' => '"Pest Route Initial Proposal"',
            'body' => '"Pest Route Initial Proposal"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/share"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "recipients": [
        "johnsmith@example.net",
        "anasmith@example.net"
    ],
    "subject": "\"Pest Route Initial Proposal\"",
    "body": "\"Pest Route Initial Proposal\""
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/proposals/{proposal_uuid}/share

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

recipients   string[]   

The recipients of the proposal.

subject   string   

The subject of the proposal. Example: "Pest Route Initial Proposal"

body   string   

The body of the proposal. Example: "Pest Route Initial Proposal"

Delete

requires authentication

Delete a specified proposal.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/proposals/{proposal_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Delete Review Photo

requires authentication

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/delete-review-photo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"image_url\": \"http:\\/\\/armstrong.com\\/consequatur-voluptatem-adipisci-et-labore-unde.html\",
    \"type\": \"\'cover\'.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/delete-review-photo';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'image_url' => 'http://armstrong.com/consequatur-voluptatem-adipisci-et-labore-unde.html',
            'type' => '\'cover\'.',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/delete-review-photo"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "image_url": "http:\/\/armstrong.com\/consequatur-voluptatem-adipisci-et-labore-unde.html",
    "type": "'cover'."
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/v1/proposals/{proposal_uuid}/delete-review-photo

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

image_url   string   

The image url. Example: http://armstrong.com/consequatur-voluptatem-adipisci-et-labore-unde.html

type   enum  optional  

'cover' | 'photos' required The photo type. Example: 'cover'.

Delete

requires authentication

Delete a proposal activity entry

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity-logs/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity-logs/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/proposals/3fa85f64-5717-4562-b3fc-2c963f66afa6/activity-logs/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/proposals/{proposal_uuid}/activity-logs/{activityEntryUuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

proposal_uuid   string  optional  

The UUID of the proposal. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Referral Source

API for Referral Source

List

requires authentication

Shows the list of referral sources.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/referral-sources

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

page   integer  optional  

The page number. Example : 1 Example: 9

page_size   integer  optional  

The number of record you want per page. Example : 5 Example: 14

sort_by   string  optional  

The column name. Example : name Example: aut

sort_order   string  optional  

The order in which you want your records. Example : asc Example: consequatur

search   string  optional  

The general search, it will find matching string. Example : home Example: id

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Show

requires authentication

Show a single referral source.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/referral-sources/{referralSource_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

referralSource_uuid   string  optional  

The UUID of the referral_source. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a newly created referral source.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"nostrum\",
    \"description\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\",
    \"integration_source_id\": \"1234263\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'nostrum',
            'description' => '"Lorem ipsum dolor sit amet consectetur adipisicing elit."',
            'integration_source_id' => '1234263',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "nostrum",
    "description": "\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\"",
    "integration_source_id": "1234263"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/referral-sources

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the referral source. Example : Referral Source 1 Example: nostrum

description   string   

The attributes of the referral source. Example: "Lorem ipsum dolor sit amet consectetur adipisicing elit."

integration_source_id   string  optional  

optional The image source id of the referral source. Example: 1234263

Update

requires authentication

Update a referral source.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"maxime\",
    \"description\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\",
    \"integration_source_id\": \"1234263\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'maxime',
            'description' => '"Lorem ipsum dolor sit amet consectetur adipisicing elit."',
            'integration_source_id' => '1234263',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "maxime",
    "description": "\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\"",
    "integration_source_id": "1234263"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/referral-sources/{referralSource_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

referralSource_uuid   string  optional  

The UUID of the referral_source. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the referral source. Example : Referral Source 1 Example: maxime

description   string   

The attributes of the referral source. Example: "Lorem ipsum dolor sit amet consectetur adipisicing elit."

integration_source_id   string  optional  

optional The image source id of the referral source. Example: 1234263

Patch

requires authentication

Patch a company referral source.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"a\",
    \"description\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\",
    \"integration_source_id\": \"1234263\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'a',
            'description' => '"Lorem ipsum dolor sit amet consectetur adipisicing elit."',
            'integration_source_id' => '1234263',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "a",
    "description": "\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\"",
    "integration_source_id": "1234263"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/referral-sources/{referralSource_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

referralSource_uuid   string  optional  

The UUID of the referral_source. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the referral source. Example : Referral Source 1 Example: a

description   string   

The attributes of the referral source. Example: "Lorem ipsum dolor sit amet consectetur adipisicing elit."

integration_source_id   string  optional  

optional The image source id of the referral source. Example: 1234263

Delete

requires authentication

Delete a referral source.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/referral-sources/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/referral-sources/{referralSource_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

referralSource_uuid   string  optional  

The UUID of the referral_source. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Report Templates

Create custom report templates with specific data fields, filters, and layouts for recurring business intelligence needs and analytics.

List

requires authentication

Returns the list of available reports

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/reports/templates?page=5&page_size=8&sort_by=illum&sort_order=repudiandae&search=facilis" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/reports/templates';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '5',
            'page_size' => '8',
            'sort_by' => 'illum',
            'sort_order' => 'repudiandae',
            'search' => 'facilis',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/reports/templates"
);

const params = {
    "page": "5",
    "page_size": "8",
    "sort_by": "illum",
    "sort_order": "repudiandae",
    "search": "facilis",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/reports/templates

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

filter_by_uuids   string  optional  

string[] To fitler by selected uuids. Example : [uuid, uuid-2] Example: dolores

groups   string  optional  

string[] To fitler by selected groups. Example : [dashboard, sales] Example: provident

uuid   string  optional  

optional The company uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

Query Parameters

page   integer  optional  

optional The page number. Example: 5

page_size   integer  optional  

optional The number of record you want per page. Example: 8

sort_by   string  optional  

optional The column name. Example: illum

sort_order   string  optional  

optional The order in which you want your records. Example: repudiandae

search   string  optional  

optional The general search, it will find matching string. Example: facilis

Update

requires authentication

Update a report template.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/reports/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/reports/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/reports/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());

Request      

PUT api/v1/reports/templates/{reportTemplate_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

reportTemplate_uuid   string  optional  

The UUID of the report template. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Delete

requires authentication

Delete a report template.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/reports/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/reports/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/reports/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/reports/templates/{reportTemplate_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

reportTemplate_uuid   string  optional  

The UUID of the report template. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Reports

Generate and export business intelligence reports including sales dashboards, performance metrics, and analytics. Filter reports by user, team, date range, and report type.

List

requires authentication

Returns the list of available reports

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/reports?page=12&page_size=18&sort_by=eum&sort_order=sed&search=nam" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/reports';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '12',
            'page_size' => '18',
            'sort_by' => 'eum',
            'sort_order' => 'sed',
            'search' => 'nam',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/reports"
);

const params = {
    "page": "12",
    "page_size": "18",
    "sort_by": "eum",
    "sort_order": "sed",
    "search": "nam",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/reports

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

filter_by_uuids   string  optional  

string[] To filter by selected uuids. Example : [uuid, uuid-2] Example: corporis

groups   string  optional  

string[] To filter by selected groups. Example : [dashboard, sales] Example: excepturi

report_type   string  optional  

To filter by selected report type. Example : 3245d630-24fd-11ec-accd-e397aec85c7f Example: ut

template   string  optional  

To filter by selected template. Example : 3245d630-24fd-11ec-accd-e397aec85c7f Example: aliquam

uuid   string  optional  

optional The company uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

report_uuid   string  optional  

The UUID of the report. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 12

page_size   integer  optional  

optional The number of record you want per page. Example: 18

sort_by   string  optional  

optional The column name. Example: eum

sort_order   string  optional  

optional The order in which you want your records. Example: sed

search   string  optional  

optional The general search, it will find matching string. Example: nam

Store

requires authentication

Store a newly created report.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/reports" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/reports';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/reports"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/reports

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Duplicate

requires authentication

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/reports/3fa85f64-5717-4562-b3fc-2c963f66afa6/duplicate" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/reports/3fa85f64-5717-4562-b3fc-2c963f66afa6/duplicate';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/reports/3fa85f64-5717-4562-b3fc-2c963f66afa6/duplicate"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/reports/{report_uuid}/duplicate

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

report_uuid   string  optional  

The UUID of the report. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

GET api/v1/reports/types

requires authentication

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/reports/types" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/reports/types';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/reports/types"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/reports/types

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Show

requires authentication

Show admin overview report.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/reports/admin-overview" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/reports/admin-overview';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/reports/admin-overview"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/reports/admin-overview

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Show

requires authentication

Show a single report.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/reports/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/reports/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/reports/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/reports/{report_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user_uuid   string  optional  

optional string The user uuid. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: ddf5416c-c542-35cd-92ce-6dbc68efbfdd

period   string  optional  

optional array The period type. Example : [['period_type' => 'days', 'period_detail' => [1, 7, 30, 365]], ['period_type' => 'months', 'period_detail' => ['2023-01-01', '2023-02-02']]] Example: illo

company_location_uuid   string  optional  

optional string The company location uuid. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 89da4a9c-7850-38cf-96c4-955d30ff7bea

report_uuid   string  optional  

The UUID of the report. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Export

requires authentication

Export summary reports

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/reports/3fa85f64-5717-4562-b3fc-2c963f66afa6/export" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/reports/3fa85f64-5717-4562-b3fc-2c963f66afa6/export';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/reports/3fa85f64-5717-4562-b3fc-2c963f66afa6/export"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/reports/{report_uuid}/export

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

report_uuid   string  optional  

The UUID of the report. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Filters

requires authentication

Retrieve filters to be used in frontend processes

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/reports/3fa85f64-5717-4562-b3fc-2c963f66afa6/filters" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/reports/3fa85f64-5717-4562-b3fc-2c963f66afa6/filters';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/reports/3fa85f64-5717-4562-b3fc-2c963f66afa6/filters"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/reports/{report_uuid}/filters

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

report_uuid   string  optional  

The UUID of the report. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Delete

requires authentication

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/reports/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/reports/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/reports/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/reports/{report_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

report_uuid   string  optional  

The UUID of the report. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Reviews

Collect and manage customer reviews and testimonials. Request reviews from satisfied customers to build your online reputation and gather feedback.

List

requires authentication

Shows the list of review with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews?page=16&page_size=11&sort_by=saepe&sort_order=tempore&search=repellendus" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '16',
            'page_size' => '11',
            'sort_by' => 'saepe',
            'sort_order' => 'tempore',
            'search' => 'repellendus',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews"
);

const params = {
    "page": "16",
    "page_size": "11",
    "sort_by": "saepe",
    "sort_order": "tempore",
    "search": "repellendus",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/reviews

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

is_all_location   string  optional  

boolean Will get all reviews that is not company location specific. Example : true Example: aut

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 16

page_size   integer  optional  

optional The number of record you want per page. Example: 11

sort_by   string  optional  

optional The column name. Example: saepe

sort_order   string  optional  

optional The order in which you want your records. Example: tempore

search   string  optional  

optional The general search, it will find matching string. Example: repellendus

Show

requires authentication

Show a single review.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/reviews/{review_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

review_uuid   string  optional  

The UUID of the review. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a newly created review.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=aut"\
    --form "message=omnis"\
    --form "rate=nostrum"\
    --form "external_photo_url=http://www.mertz.com/consequatur-quibusdam-dicta-similique-ipsam-est-quia.html"\
    --form "position=17"\
    --form "company_location_uuid=534b529e-99c1-35f2-b1a8-d4fc266be5b1"\
    --form "photo=@/tmp/phpYqjYWL" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'name',
                'contents' => 'aut'
            ],
            [
                'name' => 'message',
                'contents' => 'omnis'
            ],
            [
                'name' => 'rate',
                'contents' => 'nostrum'
            ],
            [
                'name' => 'external_photo_url',
                'contents' => 'http://www.mertz.com/consequatur-quibusdam-dicta-similique-ipsam-est-quia.html'
            ],
            [
                'name' => 'position',
                'contents' => '17'
            ],
            [
                'name' => 'company_location_uuid',
                'contents' => '534b529e-99c1-35f2-b1a8-d4fc266be5b1'
            ],
            [
                'name' => 'photo',
                'contents' => fopen('/tmp/phpYqjYWL', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('name', 'aut');
body.append('message', 'omnis');
body.append('rate', 'nostrum');
body.append('external_photo_url', 'http://www.mertz.com/consequatur-quibusdam-dicta-similique-ipsam-est-quia.html');
body.append('position', '17');
body.append('company_location_uuid', '534b529e-99c1-35f2-b1a8-d4fc266be5b1');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/reviews

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the customer/reviewer. Example : "My Review" Example: aut

message   string  optional  

The message of the review. Example : "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Consequatur dolores iste quae soluta." Example: omnis

rate   string   

The rate of the review ranging from 0-5. Example : 5 Example: nostrum

photo   file  optional  

The file photo of the review..jpg, .jpeg, .png Example: /tmp/phpYqjYWL

external_photo_url   string  optional  

An external url of an image as review/photo. Example: http://www.mertz.com/consequatur-quibusdam-dicta-similique-ipsam-est-quia.html

position   integer  optional  

The the position of the review. Example : 2 Example: 17

company_location_uuid   uuid  optional  

The company location to be associated to the review. Leaving empty/blank means visible to all company locations. Example: 534b529e-99c1-35f2-b1a8-d4fc266be5b1

Update

requires authentication

Update a review.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=architecto"\
    --form "message=nihil"\
    --form "rate=dolores"\
    --form "external_photo_url=http://kirlin.info/voluptatum-iste-quae-ratione-quia-incidunt-soluta.html"\
    --form "position=1"\
    --form "company_location_uuid=02b59474-2a69-36b6-a959-1d7343953b02"\
    --form "photo=@/tmp/php3IQjCJ" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'name',
                'contents' => 'architecto'
            ],
            [
                'name' => 'message',
                'contents' => 'nihil'
            ],
            [
                'name' => 'rate',
                'contents' => 'dolores'
            ],
            [
                'name' => 'external_photo_url',
                'contents' => 'http://kirlin.info/voluptatum-iste-quae-ratione-quia-incidunt-soluta.html'
            ],
            [
                'name' => 'position',
                'contents' => '1'
            ],
            [
                'name' => 'company_location_uuid',
                'contents' => '02b59474-2a69-36b6-a959-1d7343953b02'
            ],
            [
                'name' => 'photo',
                'contents' => fopen('/tmp/php3IQjCJ', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('name', 'architecto');
body.append('message', 'nihil');
body.append('rate', 'dolores');
body.append('external_photo_url', 'http://kirlin.info/voluptatum-iste-quae-ratione-quia-incidunt-soluta.html');
body.append('position', '1');
body.append('company_location_uuid', '02b59474-2a69-36b6-a959-1d7343953b02');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/reviews/{review_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

review_uuid   string  optional  

The UUID of the review. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the customer/reviewer. Example : "My Review" Example: architecto

message   string  optional  

The message of the review. Example : "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Consequatur dolores iste quae soluta." Example: nihil

rate   string   

The rate of the review ranging from 0-5. Example : 5 Example: dolores

photo   file  optional  

The file photo of the review..jpg, .jpeg, .png Example: /tmp/php3IQjCJ

external_photo_url   string  optional  

An external url of an image as review/photo. Example: http://kirlin.info/voluptatum-iste-quae-ratione-quia-incidunt-soluta.html

position   integer  optional  

The the position of the review. Example : 2 Example: 1

company_location_uuid   uuid  optional  

The company location to be associated to the review. Leaving empty/blank means visible to all company locations. Example: 02b59474-2a69-36b6-a959-1d7343953b02

Patch Index

requires authentication

Performs specific updates for review ranking

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/reviews

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

review_ranking_list   string  optional  

string[] A dictionary of uuids with uuid as key and rank as the value. Example : {"69e56cdf-cea8-4356-b35d-58d610aba886" : 1, "9c578b77-916a-4620-a246-fa951f422912" : 2} Example: rem

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Patch

requires authentication

Patch a company review.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"repellendus\",
    \"message\": \"quisquam\",
    \"rate\": \"laboriosam\",
    \"external_photo_url\": \"http:\\/\\/skiles.biz\\/ut-enim-eligendi-asperiores-ipsum-dolor\",
    \"position\": 4,
    \"company_location_uuid\": \"6750b054-427a-3663-8d7f-1aaa7cb35709\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'repellendus',
            'message' => 'quisquam',
            'rate' => 'laboriosam',
            'external_photo_url' => 'http://skiles.biz/ut-enim-eligendi-asperiores-ipsum-dolor',
            'position' => 4,
            'company_location_uuid' => '6750b054-427a-3663-8d7f-1aaa7cb35709',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "repellendus",
    "message": "quisquam",
    "rate": "laboriosam",
    "external_photo_url": "http:\/\/skiles.biz\/ut-enim-eligendi-asperiores-ipsum-dolor",
    "position": 4,
    "company_location_uuid": "6750b054-427a-3663-8d7f-1aaa7cb35709"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/reviews/{review_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

review_uuid   string  optional  

The UUID of the review. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string  optional  

The name of the customer/reviewer. Example : "My Review" Example: repellendus

message   string  optional  

The message of the review. Example : "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Consequatur dolores iste quae soluta." Example: quisquam

rate   string  optional  

The rate of the review ranging from 0-5. Example : 5 Example: laboriosam

external_photo_url   string  optional  

An external url of an image as review/photo. Example: http://skiles.biz/ut-enim-eligendi-asperiores-ipsum-dolor

position   integer  optional  

The the position of the review. Example : 2 Example: 4

company_location_uuid   uuid  optional  

The company location to be associated to the review. Leaving empty/blank means visible to all company locations. Example: 6750b054-427a-3663-8d7f-1aaa7cb35709

Delete

requires authentication

Delete a review.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/reviews/{review_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

review_uuid   string  optional  

The UUID of the review. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Roles

Define user roles with associated permissions for access control. Uses Spatie Permission package to manage role-based authorization throughout the application.

List / Fetch

requires authentication

Shows the list of role or fetch single record using uuid.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/roles" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\",
    \"name\": \"admin\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/roles';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
            'name' => 'admin',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/roles"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "uuid": "3245d630-24fd-11ec-accd-e397aec85c7f",
    "name": "admin"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/roles

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

uuid   string  optional  

optional The uuid of the role. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

name   string  optional  

optional The role name. Example: admin

List / Fetch

requires authentication

Shows the list of role or fetch single record using uuid.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/roles/{roleUuid}" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\",
    \"name\": \"admin\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/roles/{roleUuid}';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
            'name' => 'admin',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/roles/{roleUuid}"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "uuid": "3245d630-24fd-11ec-accd-e397aec85c7f",
    "name": "admin"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/roles/{roleUuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

uuid   string  optional  

optional The uuid of the role. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

name   string  optional  

optional The role name. Example: admin

Create / Update role.

requires authentication

This endpoint lets user to create/update role.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/roles" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"admin\",
    \"uuid\": \"ecd24580-2749-11ec-9b86-1102c06e74b4\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/roles';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'admin',
            'uuid' => 'ecd24580-2749-11ec-9b86-1102c06e74b4',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/roles"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "admin",
    "uuid": "ecd24580-2749-11ec-9b86-1102c06e74b4"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/roles

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

The name of the role. Example: admin

uuid   string  optional  

optional The uuid of the role. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

Create / Update role.

requires authentication

This endpoint lets user to create/update role.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/roles/{roleUuid}" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"admin\",
    \"uuid\": \"ecd24580-2749-11ec-9b86-1102c06e74b4\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/roles/{roleUuid}';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'admin',
            'uuid' => 'ecd24580-2749-11ec-9b86-1102c06e74b4',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/roles/{roleUuid}"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "admin",
    "uuid": "ecd24580-2749-11ec-9b86-1102c06e74b4"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/roles/{roleUuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

The name of the role. Example: admin

uuid   string  optional  

optional The uuid of the role. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

Delete

requires authentication

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/roles/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/roles/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/roles/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/roles/{roleUuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

uuid   string   

The uuid of the role. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

Schedules

Define service and billing frequency schedules (monthly, quarterly, annual, etc.) used in service plans and line items for recurring pest control services.

List

requires authentication

Shows the list of schedule with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules?page=4&page_size=18&sort_by=voluptate&sort_order=et&search=laborum" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '4',
            'page_size' => '18',
            'sort_by' => 'voluptate',
            'sort_order' => 'et',
            'search' => 'laborum',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules"
);

const params = {
    "page": "4",
    "page_size": "18",
    "sort_by": "voluptate",
    "sort_order": "et",
    "search": "laborum",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/schedules

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

type   string  optional  

in:'service','billing' The filter by type. Example : service Example: neque

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 4

page_size   integer  optional  

optional The number of record you want per page. Example: 18

sort_by   string  optional  

optional The column name. Example: voluptate

sort_order   string  optional  

optional The order in which you want your records. Example: et

search   string  optional  

optional The general search, it will find matching string. Example: laborum

Show

requires authentication

Show a single schedule.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/schedules/{schedule_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

schedule_uuid   string  optional  

The UUID of the schedule. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a newly created schedule.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"esse\",
    \"description\": \"Rerum eum est aspernatur odio voluptatibus aut occaecati.\",
    \"type\": \"perspiciatis\",
    \"units\": 14,
    \"term\": \"temporibus\",
    \"enabled_service_months\": [
        \"eos\"
    ],
    \"visits\": 1
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'esse',
            'description' => 'Rerum eum est aspernatur odio voluptatibus aut occaecati.',
            'type' => 'perspiciatis',
            'units' => 14,
            'term' => 'temporibus',
            'enabled_service_months' => [
                'eos',
            ],
            'visits' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "esse",
    "description": "Rerum eum est aspernatur odio voluptatibus aut occaecati.",
    "type": "perspiciatis",
    "units": 14,
    "term": "temporibus",
    "enabled_service_months": [
        "eos"
    ],
    "visits": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/schedules

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the schedule. Example : "My Schedule" Example: esse

description   string  optional  

The description of the schedule. Example : "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Consequatur dolores iste quae soluta." Example: Rerum eum est aspernatur odio voluptatibus aut occaecati.

type   string   

The type of the schedule (service, billing). Example : "service" Example: perspiciatis

units   integer   

The number of week(s)/month(s)/year(s) of a schedule. Example : 5 Example: 14

term   string   

The terms of the schedule (week/month/year). Example : week Example: temporibus

enabled_service_months   string[]   

The list of integer which represents a month. Example : [1, 2, 12] means ["January", "February", "December"]

visits   integer  optional  

The number of visits of the schedule. Example : 52 Example: 1

Update

requires authentication

Update a schedule.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"cum\",
    \"description\": \"Non fuga officiis reprehenderit quae ut.\",
    \"type\": \"inventore\",
    \"units\": 3,
    \"term\": \"qui\",
    \"enabled_service_months\": [
        \"error\"
    ],
    \"visits\": 17
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'cum',
            'description' => 'Non fuga officiis reprehenderit quae ut.',
            'type' => 'inventore',
            'units' => 3,
            'term' => 'qui',
            'enabled_service_months' => [
                'error',
            ],
            'visits' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "cum",
    "description": "Non fuga officiis reprehenderit quae ut.",
    "type": "inventore",
    "units": 3,
    "term": "qui",
    "enabled_service_months": [
        "error"
    ],
    "visits": 17
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/schedules/{schedule_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

schedule_uuid   string  optional  

The UUID of the schedule. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the schedule. Example : "My Schedule" Example: cum

description   string  optional  

The description of the schedule. Example : "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Consequatur dolores iste quae soluta." Example: Non fuga officiis reprehenderit quae ut.

type   string   

The type of the schedule (service, billing). Example : "service" Example: inventore

units   integer   

The number of week(s)/month(s)/year(s) of a schedule. Example : 5 Example: 3

term   string   

The terms of the schedule (week/month/year). Example : week Example: qui

enabled_service_months   string[]   

The list of integer which represents a month. Example : [1, 2, 12] means ["January", "February", "December"]

visits   integer  optional  

The number of visits of the schedule. Example : 52 Example: 17

Patch

requires authentication

Patch a company schedule.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"sint\",
    \"description\": \"Error quam ut mollitia sit quis atque.\",
    \"type\": \"neque\",
    \"units\": 2,
    \"term\": \"facilis\",
    \"enabled_service_months\": [
        \"aliquam\"
    ],
    \"visits\": 18
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'sint',
            'description' => 'Error quam ut mollitia sit quis atque.',
            'type' => 'neque',
            'units' => 2,
            'term' => 'facilis',
            'enabled_service_months' => [
                'aliquam',
            ],
            'visits' => 18,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "sint",
    "description": "Error quam ut mollitia sit quis atque.",
    "type": "neque",
    "units": 2,
    "term": "facilis",
    "enabled_service_months": [
        "aliquam"
    ],
    "visits": 18
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/schedules/{schedule_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

schedule_uuid   string  optional  

The UUID of the schedule. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the schedule. Example : "My Schedule" Example: sint

description   string  optional  

The description of the schedule. Example : "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Consequatur dolores iste quae soluta." Example: Error quam ut mollitia sit quis atque.

type   string   

The type of the schedule (service, billing). Example : "service" Example: neque

units   integer   

The number of week(s)/month(s)/year(s) of a schedule. Example : 5 Example: 2

term   string   

The terms of the schedule (week/month/year). Example : week Example: facilis

enabled_service_months   string[]   

The list of integer which represents a month. Example : [1, 2, 12] means ["January", "February", "December"]

visits   integer  optional  

The number of visits of the schedule. Example : 52 Example: 18

Delete

requires authentication

Delete a schedule.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/schedules/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/schedules/{schedule_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

schedule_uuid   string  optional  

The UUID of the schedule. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Service Agreements

Manage legal service agreement templates that outline terms and conditions. Attach service agreements to proposals for customer acceptance and mark agreements as active.

List

requires authentication

Shows the list of company service agreements with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements?page=7&page_size=8&sort_by=eveniet&sort_order=qui&search=deleniti" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '7',
            'page_size' => '8',
            'sort_by' => 'eveniet',
            'sort_order' => 'qui',
            'search' => 'deleniti',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements"
);

const params = {
    "page": "7",
    "page_size": "8",
    "sort_by": "eveniet",
    "sort_order": "qui",
    "search": "deleniti",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/service-agreements

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

filter_by_uuids   string  optional  

string[] To fitler by selected uuids. Example : [uuid, uuid-2] Example: quis

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 7

page_size   integer  optional  

optional The number of record you want per page. Example: 8

sort_by   string  optional  

optional The column name. Example: eveniet

sort_order   string  optional  

optional The order in which you want your records. Example: qui

search   string  optional  

optional The general search, it will find matching string. Example: deleniti

Show

requires authentication

Show a single service agreement.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/service-agreements/{serviceAgreement_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

serviceAgreement_uuid   string  optional  

The UUID of the service_agreement. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a service agreement.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"est\",
    \"content\": \"delectus\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'est',
            'content' => 'delectus',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "est",
    "content": "delectus"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/service-agreements

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

title   string   

The title of the service agreement. Example : Termites Service Agreement Example: est

content   string   

The content of the service agreement. Example : Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor Example: delectus

Update

requires authentication

Update a service agreement.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"dolorum\",
    \"content\": \"deleniti\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'dolorum',
            'content' => 'deleniti',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "dolorum",
    "content": "deleniti"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/service-agreements/{serviceAgreement_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

serviceAgreement_uuid   string  optional  

The UUID of the service_agreement. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

title   string   

The title of the service agreement. Example : Termites Service Agreement Example: dolorum

content   string   

The content of the service agreement. Example : Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor Example: deleniti

Patch

requires authentication

Patch a service agreement.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"eos\",
    \"content\": \"qui\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'eos',
            'content' => 'qui',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "eos",
    "content": "qui"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/service-agreements/{serviceAgreement_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

serviceAgreement_uuid   string  optional  

The UUID of the service_agreement. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

title   string  optional  

optional The title of the service agreement. Example : Termites Service Agreement Example: eos

content   string  optional  

optional The content of the service agreement. Example : Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor Example: qui

Patch - Set as Active

requires authentication

Set as Active a service agreement version.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements/3fa85f64-5717-4562-b3fc-2c963f66afa6/setAsActive" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"numquam\",
    \"content\": \"voluptas\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements/3fa85f64-5717-4562-b3fc-2c963f66afa6/setAsActive';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'title' => 'numquam',
            'content' => 'voluptas',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements/3fa85f64-5717-4562-b3fc-2c963f66afa6/setAsActive"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "numquam",
    "content": "voluptas"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/service-agreements/{serviceAgreement_uuid}/setAsActive

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

serviceAgreement_uuid   string  optional  

The UUID of the service_agreement. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

title   string  optional  

optional The title of the service agreement. Example : Termites Service Agreement Example: numquam

content   string  optional  

optional The content of the service agreement. Example : Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor Example: voluptas

Delete

requires authentication

Delete a service agreement.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/service-agreements/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/service-agreements/{serviceAgreement_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

serviceAgreement_uuid   string  optional  

The UUID of the service_agreement. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Service Plan Custom Fields

Add custom data fields to service plans to capture business-specific information such as treatment methods, coverage areas, or special terms.

List

requires authentication

Shows the list of Service Plan Custom Fields with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields?page=12&page_size=8&sort_by=earum&sort_order=enim&search=qui" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '12',
            'page_size' => '8',
            'sort_by' => 'earum',
            'sort_order' => 'enim',
            'search' => 'qui',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields"
);

const params = {
    "page": "12",
    "page_size": "8",
    "sort_by": "earum",
    "sort_order": "enim",
    "search": "qui",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/service-plans/{servicePlan_uuid}/custom-fields

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 12

page_size   integer  optional  

optional The number of record you want per page. Example: 8

sort_by   string  optional  

optional The column name. Example: earum

sort_order   string  optional  

optional The order in which you want your records. Example: enim

search   string  optional  

optional The general search, it will find matching string. Example: qui

Create (Single/Multiple)

requires authentication

Store a newly created Service Plan Custom Field. For multiple creation, the @bodyParameter will be an array of a single @bodyParameter

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"label\": \"First Name\",
    \"input_type\": \"TEXT\",
    \"default_value\": \"\\\"\\\"\",
    \"combine_input_value_collection\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'label' => 'First Name',
            'input_type' => 'TEXT',
            'default_value' => '""',
            'combine_input_value_collection' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "label": "First Name",
    "input_type": "TEXT",
    "default_value": "\"\"",
    "combine_input_value_collection": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/service-plans/{servicePlan_uuid}/custom-fields

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

label   string   

The label Service Plan Custom Field. Example: First Name

input_type   string   

The field type of the custom field. Example: TEXT

default_value   string  optional  

optional The default value of the custom field. Example: ""

combine_input_value_collection   boolean  optional  

optional The option to combine custom fields by label. Example: true

Update (Single/Multiple)

requires authentication

Modify the specified Service Plan Custom Field. For Multiple update, @bodyparameter will be an array of the Single @bodyParameter (if uuid is included then perform an update; else, create new record).

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"custom_fields\": \"s\",
    \"save_service_plan_as\": \"SERVICE_PLAN_ACTIVE\",
    \"label\": \"First Name\",
    \"input_type\": \"TEXT\",
    \"default_value\": \"\\\"\\\"\",
    \"combine_input_value_collection\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'custom_fields' => 's',
            'save_service_plan_as' => 'SERVICE_PLAN_ACTIVE',
            'label' => 'First Name',
            'input_type' => 'TEXT',
            'default_value' => '""',
            'combine_input_value_collection' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "custom_fields": "s",
    "save_service_plan_as": "SERVICE_PLAN_ACTIVE",
    "label": "First Name",
    "input_type": "TEXT",
    "default_value": "\"\"",
    "combine_input_value_collection": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/service-plans/{servicePlan_uuid}/custom-fields

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

servicePlanCustomField_uuid   string  optional  

The UUID of the service_plan_custom_field. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

custom_fields   string[]  optional  

Must have at least 0 items. Must not have more than 150 items. Example: s

label   string   

Must not be greater than 191 characters. Example: brssjhjlnmwvkrvwj

input_type   string  optional  
combine_input_value_collection   boolean  optional  

Example: true

save_service_plan_as   string  optional  

Example: SERVICE_PLAN_ACTIVE

Must be one of:
  • SERVICE_PLAN_DRAFT
  • SERVICE_PLAN_ACTIVE
  • SERVICE_PLAN_ARCHIVED
label   string   

The label Service Plan Custom Field. Example: First Name

input_type   string   

The field type of the custom field. Example: TEXT

default_value   string  optional  

optional The default value of the custom field. Example: ""

combine_input_value_collection   boolean  optional  

optional The option to combine custom fields by label. Example: true

Get

requires authentication

Display the specified Service Plan Custom Field.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/service-plans/{servicePlan_uuid}/custom-fields/{servicePlanCustomField_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

servicePlanCustomField_uuid   string  optional  

The UUID of the service_plan_custom_field. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Update (Single/Multiple)

requires authentication

Modify the specified Service Plan Custom Field. For Multiple update, @bodyparameter will be an array of the Single @bodyParameter (if uuid is included then perform an update; else, create new record).

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"custom_fields\": \"xfvjwentttathbbalncnoxoa\",
    \"save_service_plan_as\": \"SERVICE_PLAN_ACTIVE\",
    \"label\": \"First Name\",
    \"input_type\": \"TEXT\",
    \"default_value\": \"\\\"\\\"\",
    \"combine_input_value_collection\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'custom_fields' => 'xfvjwentttathbbalncnoxoa',
            'save_service_plan_as' => 'SERVICE_PLAN_ACTIVE',
            'label' => 'First Name',
            'input_type' => 'TEXT',
            'default_value' => '""',
            'combine_input_value_collection' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "custom_fields": "xfvjwentttathbbalncnoxoa",
    "save_service_plan_as": "SERVICE_PLAN_ACTIVE",
    "label": "First Name",
    "input_type": "TEXT",
    "default_value": "\"\"",
    "combine_input_value_collection": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/service-plans/{servicePlan_uuid}/custom-fields/{servicePlanCustomField_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

servicePlanCustomField_uuid   string  optional  

The UUID of the service_plan_custom_field. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

custom_fields   string[]  optional  

Must have at least 0 items. Must not have more than 150 items. Example: xfvjwentttathbbalncnoxoa

label   string   

Must not be greater than 191 characters. Example: nkvrbuvlkemnbzo

input_type   string  optional  
combine_input_value_collection   boolean  optional  

Example: false

save_service_plan_as   string  optional  

Example: SERVICE_PLAN_ACTIVE

Must be one of:
  • SERVICE_PLAN_DRAFT
  • SERVICE_PLAN_ACTIVE
  • SERVICE_PLAN_ARCHIVED
label   string   

The label Service Plan Custom Field. Example: First Name

input_type   string   

The field type of the custom field. Example: TEXT

default_value   string  optional  

optional The default value of the custom field. Example: ""

combine_input_value_collection   boolean  optional  

optional The option to combine custom fields by label. Example: true

Patch

requires authentication

Perform patches for the specified Service Plan Custom Field.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"label\": \"First Name\",
    \"input_type\": \"TEXT\",
    \"default_value\": \"\\\"\\\"\",
    \"combine_input_value_collection\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'label' => 'First Name',
            'input_type' => 'TEXT',
            'default_value' => '""',
            'combine_input_value_collection' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "label": "First Name",
    "input_type": "TEXT",
    "default_value": "\"\"",
    "combine_input_value_collection": true
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/service-plans/{servicePlan_uuid}/custom-fields/{servicePlanCustomField_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

servicePlanCustomField_uuid   string  optional  

The UUID of the service_plan_custom_field. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

label   string  optional  

The label Service Plan Custom Field. Example: First Name

input_type   string  optional  

The field type of the custom field. Example: TEXT

default_value   string  optional  

optional The default value of the custom field. Example: ""

combine_input_value_collection   boolean  optional  

optional The option to combine custom fields by label. Example: true

Delete

requires authentication

Remove the specified Service Plan Custom Field.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/custom-fields/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/service-plans/{servicePlan_uuid}/custom-fields/{servicePlanCustomField_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

servicePlanCustomField_uuid   string  optional  

The UUID of the service_plan_custom_field. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Service Plan Pricing Groups

Create pricing tiers for service plans based on property size, square footage, treatment frequency, or other factors. Offer multiple pricing options within proposals.

List

requires authentication

Shows the list of Service Plan Pricing Group with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups?page=3&page_size=9&sort_by=ea&sort_order=qui&search=eligendi" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '3',
            'page_size' => '9',
            'sort_by' => 'ea',
            'sort_order' => 'qui',
            'search' => 'eligendi',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups"
);

const params = {
    "page": "3",
    "page_size": "9",
    "sort_by": "ea",
    "sort_order": "qui",
    "search": "eligendi",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/service-plans/{servicePlan_uuid}/pricing-groups

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 3

page_size   integer  optional  

optional The number of record you want per page. Example: 9

sort_by   string  optional  

optional The column name. Example: ea

sort_order   string  optional  

optional The order in which you want your records. Example: qui

search   string  optional  

optional The general search, it will find matching string. Example: eligendi

Create

requires authentication

Store a newly created Service Plan Pricing Group.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"pricing_group\": [],
    \"name\": \"Premium Service Plan Pricing Group\",
    \"frequency\": \"MONTHLY\",
    \"pricing_type\": \"DYNAMIC_RANGE_PRICE\",
    \"apply_taxes\": true,
    \"description\": \"Lorem ipsum dolor sit amet, consectetur adipisicing elit...\",
    \"pricing_data\": {
        \"type\": \"The Price\",
        \"default\": \"The Pricing\",
        \"max\": \"1000.00\"
    }
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'pricing_group' => [],
            'name' => 'Premium Service Plan Pricing Group',
            'frequency' => 'MONTHLY',
            'pricing_type' => 'DYNAMIC_RANGE_PRICE',
            'apply_taxes' => true,
            'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit...',
            'pricing_data' => [
                'type' => 'The Price',
                'default' => 'The Pricing',
                'max' => '1000.00',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "pricing_group": [],
    "name": "Premium Service Plan Pricing Group",
    "frequency": "MONTHLY",
    "pricing_type": "DYNAMIC_RANGE_PRICE",
    "apply_taxes": true,
    "description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit...",
    "pricing_data": {
        "type": "The Price",
        "default": "The Pricing",
        "max": "1000.00"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/service-plans/{servicePlan_uuid}/pricing-groups

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

pricing_group   object   
name   string   

The name of Service Plan Pricing Group. Example: Premium Service Plan Pricing Group

frequency   string   

The frequency of Service Plan Pricing Group. Example: MONTHLY

pricing_type   string  optional  

The pricing type of Service Plan Pricing Group. Example: DYNAMIC_RANGE_PRICE

apply_taxes   boolean  optional  

The support request details. Example: true

description   string  optional  

The support request details. Example: Lorem ipsum dolor sit amet, consectetur adipisicing elit...

pricing_data   object  optional  

The support request details.

Update (Single/Multiple)

requires authentication

Modify the specified Service Plan Pricing Group. For Single update, body parameter are all required. For Multiple update, @bodyparameter will be an array of the Single @bodyParameter (if uuid is included then perform update; else, create new).

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"pricing_group\": [],
    \"save_service_plan_as\": \"SERVICE_PLAN_ARCHIVED\",
    \"name\": \"Premium Service Plan Pricing Group\",
    \"frequency\": \"MONTHLY\",
    \"pricing_type\": \"DYNAMIC_RANGE_PRICE\",
    \"apply_taxes\": true,
    \"description\": \"Lorem ipsum dolor sit amet, consectetur adipisicing elit...\",
    \"pricing_data\": {
        \"type\": \"The Price\",
        \"default\": \"The Pricing\",
        \"max\": \"1000.00\"
    }
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'pricing_group' => [],
            'save_service_plan_as' => 'SERVICE_PLAN_ARCHIVED',
            'name' => 'Premium Service Plan Pricing Group',
            'frequency' => 'MONTHLY',
            'pricing_type' => 'DYNAMIC_RANGE_PRICE',
            'apply_taxes' => true,
            'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit...',
            'pricing_data' => [
                'type' => 'The Price',
                'default' => 'The Pricing',
                'max' => '1000.00',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "pricing_group": [],
    "save_service_plan_as": "SERVICE_PLAN_ARCHIVED",
    "name": "Premium Service Plan Pricing Group",
    "frequency": "MONTHLY",
    "pricing_type": "DYNAMIC_RANGE_PRICE",
    "apply_taxes": true,
    "description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit...",
    "pricing_data": {
        "type": "The Price",
        "default": "The Pricing",
        "max": "1000.00"
    }
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/service-plans/{servicePlan_uuid}/pricing-groups

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

servicePlanPricingGroup_uuid   string  optional  

The UUID of the service_plan_pricing_group. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

pricing_group   object   
pricing_group_rules   object  optional  
save_service_plan_as   string  optional  

Example: SERVICE_PLAN_ARCHIVED

Must be one of:
  • SERVICE_PLAN_DRAFT
  • SERVICE_PLAN_ACTIVE
  • SERVICE_PLAN_ARCHIVED
name   string   

The name of Service Plan Pricing Group. Example: Premium Service Plan Pricing Group

frequency   string   

The frequency of Service Plan Pricing Group. Example: MONTHLY

pricing_type   string   

The pricing type of Service Plan Pricing Group. Example: DYNAMIC_RANGE_PRICE

apply_taxes   boolean   

The support request details. Example: true

description   string   

The support request details. Example: Lorem ipsum dolor sit amet, consectetur adipisicing elit...

pricing_data   object   

The support request details.

Get

requires authentication

Display the specified Service Plan Pricing Group.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/service-plans/{servicePlan_uuid}/pricing-groups/{servicePlanPricingGroup_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

servicePlanPricingGroup_uuid   string  optional  

The UUID of the service_plan_pricing_group. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Update (Single/Multiple)

requires authentication

Modify the specified Service Plan Pricing Group. For Single update, body parameter are all required. For Multiple update, @bodyparameter will be an array of the Single @bodyParameter (if uuid is included then perform update; else, create new).

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"pricing_group\": [],
    \"save_service_plan_as\": \"SERVICE_PLAN_DRAFT\",
    \"name\": \"Premium Service Plan Pricing Group\",
    \"frequency\": \"MONTHLY\",
    \"pricing_type\": \"DYNAMIC_RANGE_PRICE\",
    \"apply_taxes\": true,
    \"description\": \"Lorem ipsum dolor sit amet, consectetur adipisicing elit...\",
    \"pricing_data\": {
        \"type\": \"The Price\",
        \"default\": \"The Pricing\",
        \"max\": \"1000.00\"
    }
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'pricing_group' => [],
            'save_service_plan_as' => 'SERVICE_PLAN_DRAFT',
            'name' => 'Premium Service Plan Pricing Group',
            'frequency' => 'MONTHLY',
            'pricing_type' => 'DYNAMIC_RANGE_PRICE',
            'apply_taxes' => true,
            'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit...',
            'pricing_data' => [
                'type' => 'The Price',
                'default' => 'The Pricing',
                'max' => '1000.00',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "pricing_group": [],
    "save_service_plan_as": "SERVICE_PLAN_DRAFT",
    "name": "Premium Service Plan Pricing Group",
    "frequency": "MONTHLY",
    "pricing_type": "DYNAMIC_RANGE_PRICE",
    "apply_taxes": true,
    "description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit...",
    "pricing_data": {
        "type": "The Price",
        "default": "The Pricing",
        "max": "1000.00"
    }
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/service-plans/{servicePlan_uuid}/pricing-groups/{servicePlanPricingGroup_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

servicePlanPricingGroup_uuid   string  optional  

The UUID of the service_plan_pricing_group. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

pricing_group   object   
pricing_group_rules   object  optional  
save_service_plan_as   string  optional  

Example: SERVICE_PLAN_DRAFT

Must be one of:
  • SERVICE_PLAN_DRAFT
  • SERVICE_PLAN_ACTIVE
  • SERVICE_PLAN_ARCHIVED
name   string   

The name of Service Plan Pricing Group. Example: Premium Service Plan Pricing Group

frequency   string   

The frequency of Service Plan Pricing Group. Example: MONTHLY

pricing_type   string   

The pricing type of Service Plan Pricing Group. Example: DYNAMIC_RANGE_PRICE

apply_taxes   boolean   

The support request details. Example: true

description   string   

The support request details. Example: Lorem ipsum dolor sit amet, consectetur adipisicing elit...

pricing_data   object   

The support request details.

Patch

requires authentication

Perform patches for the specified Service Plan Pricing Group.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Premium Service Plan Pricing Group\",
    \"frequency\": \"MONTHLY\",
    \"pricing_type\": \"DYNAMIC_RANGE_PRICE\",
    \"apply_taxes\": true,
    \"description\": \"Lorem ipsum dolor sit amet, consectetur adipisicing elit...\",
    \"pricing_data\": {
        \"type\": \"The Price\",
        \"default\": \"The Pricing\",
        \"max\": \"1000.00\"
    }
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Premium Service Plan Pricing Group',
            'frequency' => 'MONTHLY',
            'pricing_type' => 'DYNAMIC_RANGE_PRICE',
            'apply_taxes' => true,
            'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit...',
            'pricing_data' => [
                'type' => 'The Price',
                'default' => 'The Pricing',
                'max' => '1000.00',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Premium Service Plan Pricing Group",
    "frequency": "MONTHLY",
    "pricing_type": "DYNAMIC_RANGE_PRICE",
    "apply_taxes": true,
    "description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit...",
    "pricing_data": {
        "type": "The Price",
        "default": "The Pricing",
        "max": "1000.00"
    }
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/service-plans/{servicePlan_uuid}/pricing-groups/{servicePlanPricingGroup_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

servicePlanPricingGroup_uuid   string  optional  

The UUID of the service_plan_pricing_group. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string  optional  

The name of Service Plan Pricing Group. Example: Premium Service Plan Pricing Group

frequency   string  optional  

The frequency of Service Plan Pricing Group. Example: MONTHLY

pricing_type   string  optional  

The pricing type of Service Plan Pricing Group. Example: DYNAMIC_RANGE_PRICE

apply_taxes   boolean  optional  

The support request details. Example: true

description   string  optional  

The support request details. Example: Lorem ipsum dolor sit amet, consectetur adipisicing elit...

pricing_data   object  optional  

The support request details.

Delete

requires authentication

Remove the specified Service Plan Pricing Group.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/pricing-groups/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/service-plans/{servicePlan_uuid}/pricing-groups/{servicePlanPricingGroup_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

servicePlanPricingGroup_uuid   string  optional  

The UUID of the service_plan_pricing_group. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Service Plans

Define and manage service plan offerings including pricing groups, treatment categories, location availability, service schedules, and contract terms. Service plans can be duplicated and included in proposals.

List

requires authentication

Shows the list of Service Plans with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/service-plans?page=15&page_size=12&sort_by=molestias&sort_order=dolor&search=excepturi" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '15',
            'page_size' => '12',
            'sort_by' => 'molestias',
            'sort_order' => 'dolor',
            'search' => 'excepturi',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans"
);

const params = {
    "page": "15",
    "page_size": "12",
    "sort_by": "molestias",
    "sort_order": "dolor",
    "search": "excepturi",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/service-plans

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

string   string  optional  

The filter for service plans with status in statuses_uuid. Example: ["725d1dcd-54ad-3a8b-a28e-830c43d8ed6c", "b033658c-4532-3dd7-9be7-64433580eda6"]

Query Parameters

page   integer  optional  

optional The page number. Example: 15

page_size   integer  optional  

optional The number of record you want per page. Example: 12

sort_by   string  optional  

optional The column name. Example: molestias

sort_order   string  optional  

optional The order in which you want your records. Example: dolor

search   string  optional  

optional The general search, it will find matching string. Example: excepturi

Get

requires authentication

Shows the specified Service Plan.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/service-plans/{servicePlan_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Create

requires authentication

Store a newly created Service Plan.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Premium Service Plan\",
    \"display_name\": \"quo\",
    \"description\": \"Lorem ipsum dolor sit amet consectetur adipisicing elit\",
    \"company_locations_uuid\": [
        \"10933939-447e-3d2c-944f-b3ef57dc6eeb\",
        \"10933939-447e-3d2c-944f-b3ef57dc6eeb\"
    ],
    \"categories_uuid\": [
        \"10933939-447e-3d2c-944f-b3ef57dc6eeb\",
        \"10933939-447e-3d2c-944f-b3ef57dc6eeb\"
    ],
    \"default_contract_term_units\": 53.790031
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Premium Service Plan',
            'display_name' => 'quo',
            'description' => 'Lorem ipsum dolor sit amet consectetur adipisicing elit',
            'company_locations_uuid' => [
                '10933939-447e-3d2c-944f-b3ef57dc6eeb',
                '10933939-447e-3d2c-944f-b3ef57dc6eeb',
            ],
            'categories_uuid' => [
                '10933939-447e-3d2c-944f-b3ef57dc6eeb',
                '10933939-447e-3d2c-944f-b3ef57dc6eeb',
            ],
            'default_contract_term_units' => 53.790031,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Premium Service Plan",
    "display_name": "quo",
    "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit",
    "company_locations_uuid": [
        "10933939-447e-3d2c-944f-b3ef57dc6eeb",
        "10933939-447e-3d2c-944f-b3ef57dc6eeb"
    ],
    "categories_uuid": [
        "10933939-447e-3d2c-944f-b3ef57dc6eeb",
        "10933939-447e-3d2c-944f-b3ef57dc6eeb"
    ],
    "default_contract_term_units": 53.790031
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/service-plans

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

The name of Service Plan. Example: Premium Service Plan

display_name   string  optional  

Example: quo

description   string  optional  

The description of Service Plan. Example: Lorem ipsum dolor sit amet consectetur adipisicing elit

company_locations_uuid   string[]  optional  

List of company_location_uuid.

categories_uuid   string[]  optional  

List of category_uuid. Example:

default_contract_term   string  optional  
default_contract_term_units   number  optional  

Example: 53.790031

Duplicate

requires authentication

This endpoint lets user to duplicate service plan and set into a draft mode

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/duplicate" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/duplicate';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/duplicate"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/service-plans/{servicePlan_uuid}/duplicate

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

service_plan_uuid   string  optional  

uuid required The uuid of the service plan. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Update

requires authentication

Perform a full field update for the specified Service Plan.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Premium Service Plan\",
    \"display_name\": \"et\",
    \"description\": \"Lorem ipsum dolor sit amet consectetur adipisicing elit\",
    \"company_locations_uuid\": [
        \"10933939-447e-3d2c-944f-b3ef57dc6eeb\",
        \"10933939-447e-3d2c-944f-b3ef57dc6eeb\"
    ],
    \"categories_uuid\": [
        \"10933939-447e-3d2c-944f-b3ef57dc6eeb\",
        \"10933939-447e-3d2c-944f-b3ef57dc6eeb\"
    ],
    \"default_contract_term_units\": 9.139939,
    \"save_as\": \"SERVICE_PLAN_ARCHIVED\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Premium Service Plan',
            'display_name' => 'et',
            'description' => 'Lorem ipsum dolor sit amet consectetur adipisicing elit',
            'company_locations_uuid' => [
                '10933939-447e-3d2c-944f-b3ef57dc6eeb',
                '10933939-447e-3d2c-944f-b3ef57dc6eeb',
            ],
            'categories_uuid' => [
                '10933939-447e-3d2c-944f-b3ef57dc6eeb',
                '10933939-447e-3d2c-944f-b3ef57dc6eeb',
            ],
            'default_contract_term_units' => 9.139939,
            'save_as' => 'SERVICE_PLAN_ARCHIVED',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Premium Service Plan",
    "display_name": "et",
    "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit",
    "company_locations_uuid": [
        "10933939-447e-3d2c-944f-b3ef57dc6eeb",
        "10933939-447e-3d2c-944f-b3ef57dc6eeb"
    ],
    "categories_uuid": [
        "10933939-447e-3d2c-944f-b3ef57dc6eeb",
        "10933939-447e-3d2c-944f-b3ef57dc6eeb"
    ],
    "default_contract_term_units": 9.139939,
    "save_as": "SERVICE_PLAN_ARCHIVED"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/service-plans/{servicePlan_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of Service Plan. Example: Premium Service Plan

display_name   string  optional  

Example: et

description   string  optional  

The description of Service Plan. Example: Lorem ipsum dolor sit amet consectetur adipisicing elit

company_locations_uuid   string[]  optional  

List of company_location_uuid.

categories_uuid   string[]  optional  

List of category_uuid. Example:

default_contract_term   string  optional  
default_contract_term_units   number  optional  

Example: 9.139939

save_as   string  optional  

Example: SERVICE_PLAN_ARCHIVED

Must be one of:
  • SERVICE_PLAN_DRAFT
  • SERVICE_PLAN_ACTIVE
  • SERVICE_PLAN_ARCHIVED

Patch

requires authentication

Perform a patch for the specified Service Plan.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Premium Service Plan\",
    \"display_name\": \"facilis\",
    \"description\": \"Lorem ipsum dolor sit amet consectetur adipisicing elit\",
    \"company_locations_uuid\": [
        \"10933939-447e-3d2c-944f-b3ef57dc6eeb\",
        \"10933939-447e-3d2c-944f-b3ef57dc6eeb\"
    ],
    \"categories_uuid\": [
        \"10933939-447e-3d2c-944f-b3ef57dc6eeb\",
        \"10933939-447e-3d2c-944f-b3ef57dc6eeb\"
    ],
    \"default_contract_term_units\": 8010.21811,
    \"save_as\": \"SERVICE_PLAN_ARCHIVED\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Premium Service Plan',
            'display_name' => 'facilis',
            'description' => 'Lorem ipsum dolor sit amet consectetur adipisicing elit',
            'company_locations_uuid' => [
                '10933939-447e-3d2c-944f-b3ef57dc6eeb',
                '10933939-447e-3d2c-944f-b3ef57dc6eeb',
            ],
            'categories_uuid' => [
                '10933939-447e-3d2c-944f-b3ef57dc6eeb',
                '10933939-447e-3d2c-944f-b3ef57dc6eeb',
            ],
            'default_contract_term_units' => 8010.21811,
            'save_as' => 'SERVICE_PLAN_ARCHIVED',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Premium Service Plan",
    "display_name": "facilis",
    "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit",
    "company_locations_uuid": [
        "10933939-447e-3d2c-944f-b3ef57dc6eeb",
        "10933939-447e-3d2c-944f-b3ef57dc6eeb"
    ],
    "categories_uuid": [
        "10933939-447e-3d2c-944f-b3ef57dc6eeb",
        "10933939-447e-3d2c-944f-b3ef57dc6eeb"
    ],
    "default_contract_term_units": 8010.21811,
    "save_as": "SERVICE_PLAN_ARCHIVED"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/service-plans/{servicePlan_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string  optional  

requiredThe name of Service Plan. Example: Premium Service Plan

display_name   string  optional  

Example: facilis

description   string  optional  

The description of Service Plan. Example: Lorem ipsum dolor sit amet consectetur adipisicing elit

company_locations_uuid   string[]  optional  

List of company_location_uuid.

categories_uuid   string[]  optional  

List of category_uuid. Example:

settings   object  optional  
default_contract_term   string  optional  
default_contract_term_units   number  optional  

Example: 8010.21811

save_as   string  optional  

Example: SERVICE_PLAN_ARCHIVED

Must be one of:
  • SERVICE_PLAN_DRAFT
  • SERVICE_PLAN_ACTIVE
  • SERVICE_PLAN_ARCHIVED

Save as Draft

requires authentication

Save as Draft the specified Service Plan.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/draft" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/draft';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/draft"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v1/service-plans/{servicePlan_uuid}/draft

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Publish

requires authentication

Publish the specified Service Plan.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/publish" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/publish';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/publish"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v1/service-plans/{servicePlan_uuid}/publish

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Archived

requires authentication

Archived the specified Service Plan.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/archive" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/archive';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/archive"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v1/service-plans/{servicePlan_uuid}/archive

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Unarchived

requires authentication

Unarchived the specified Service Plan.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/unarchive" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/unarchive';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6/unarchive"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v1/service-plans/{servicePlan_uuid}/unarchive

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Delete

requires authentication

Remove the specified Service Plan.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/service-plans/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/service-plans/{servicePlan_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

servicePlan_uuid   string  optional  

The UUID of the service_plan. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Solution

API for Solution

List

requires authentication

Shows the list of solutions.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/solutions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solutions';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solutions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/solutions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

page   integer  optional  

The page number. Example : 1 Example: 5

page_size   integer  optional  

The number of record you want per page. Example : 5 Example: 18

sort_by   string  optional  

The column name. Example : name Example: dolorum

sort_order   string  optional  

The order in which you want your records. Example : asc Example: culpa

search   string  optional  

The general search, it will find matching string. Example : home Example: illo

filter_by_solution_category_uuids   string  optional  

array To filter the list of solutions by solution category. Example : ["3c787d66-2a4f-3f1d-9591-c330be0abe82"] Example: nihil

filter_by_status_uuid   string  optional  

To filter the list the status. Example : "3c787d66-2a4f-3f1d-9591-c330be0abe82" Example: 167dbc7b-8149-378f-9ccb-12dbdd94be31

Show

requires authentication

Show a single solution.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/solutions/{solution_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solution_uuid   string  optional  

The UUID of the solution. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a new solution.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/solutions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"solution_category_uuid\": \"789f8602-f2b8-39d4-94e9-cfb91b79f7d5\",
    \"name\": \"dolor\",
    \"slug\": \"solution-1\",
    \"description\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\",
    \"video_url\": \"\\\"https::somevideo.com\\/thevideoforpestroutes\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solutions';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'solution_category_uuid' => '789f8602-f2b8-39d4-94e9-cfb91b79f7d5',
            'name' => 'dolor',
            'slug' => 'solution-1',
            'description' => '"Lorem ipsum dolor sit amet consectetur adipisicing elit."',
            'video_url' => '"https::somevideo.com/thevideoforpestroutes"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solutions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "solution_category_uuid": "789f8602-f2b8-39d4-94e9-cfb91b79f7d5",
    "name": "dolor",
    "slug": "solution-1",
    "description": "\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\"",
    "video_url": "\"https::somevideo.com\/thevideoforpestroutes\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/solutions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

solution_category_uuid   uuid   

The solution category of the solution. Example : "3c787d66-2a4f-3f1d-9591-c330be0abe82" Example: 789f8602-f2b8-39d4-94e9-cfb91b79f7d5

name   string   

The name of the solution. Example : Solution 1 Example: dolor

slug   string  optional  

The slug of the solution category. Example: solution-1

description   string  optional  

The attributes of the solution. Example: "Lorem ipsum dolor sit amet consectetur adipisicing elit."

video_url   string  optional  

The video url of the solution. Example: "https::somevideo.com/thevideoforpestroutes"

Store Image

requires authentication

Upload an image to solution

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/solutions/upload" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "fileUpload=@/tmp/phpi69chM" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solutions/upload';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'fileUpload',
                'contents' => fopen('/tmp/phpi69chM', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solutions/upload"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('fileUpload', document.querySelector('input[name="fileUpload"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/solutions/upload

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

fileUpload   file   

The file to be uploaded. Example: /tmp/phpi69chM

Update

requires authentication

Update a solution.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"solution_category_uuid\": \"ad923153-b544-38dc-a7cf-2bae52223e68\",
    \"name\": \"corrupti\",
    \"slug\": \"solution-1\",
    \"description\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\",
    \"video_url\": \"\\\"https::somevideo.com\\/thevideoforpestroutes\\\"\",
    \"status_uuid\": \"\\\"3c787d66-2a4f-3f1d-9591-c330be0abe82\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'solution_category_uuid' => 'ad923153-b544-38dc-a7cf-2bae52223e68',
            'name' => 'corrupti',
            'slug' => 'solution-1',
            'description' => '"Lorem ipsum dolor sit amet consectetur adipisicing elit."',
            'video_url' => '"https::somevideo.com/thevideoforpestroutes"',
            'status_uuid' => '"3c787d66-2a4f-3f1d-9591-c330be0abe82"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "solution_category_uuid": "ad923153-b544-38dc-a7cf-2bae52223e68",
    "name": "corrupti",
    "slug": "solution-1",
    "description": "\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\"",
    "video_url": "\"https::somevideo.com\/thevideoforpestroutes\"",
    "status_uuid": "\"3c787d66-2a4f-3f1d-9591-c330be0abe82\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/solutions/{solution_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solution_uuid   string  optional  

The UUID of the solution. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

solution_category_uuid   uuid   

The solution category of the solution. Example : "3c787d66-2a4f-3f1d-9591-c330be0abe82" Example: ad923153-b544-38dc-a7cf-2bae52223e68

name   string   

The name of the solution. Example : Solution 1 Example: corrupti

slug   string  optional  

The slug of the solution category. Example: solution-1

description   string  optional  

The attributes of the solution. Example: "Lorem ipsum dolor sit amet consectetur adipisicing elit."

video_url   string  optional  

The video url of the solution. Example: "https::somevideo.com/thevideoforpestroutes"

status_uuid   string  optional  

The video url of the solution. Example: "3c787d66-2a4f-3f1d-9591-c330be0abe82"

Reset

requires authentication

Reset a solution's user progress.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/reset" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/reset';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/reset"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());

Request      

PUT api/v1/solutions/{solution_uuid}/reset

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solution_uuid   string  optional  

The UUID of the solution. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Update user progress

requires authentication

Update user progress.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/user-progress" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"is_completed\": true,
    \"step\": []
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/user-progress';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'is_completed' => true,
            'step' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/user-progress"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "is_completed": true,
    "step": []
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/solutions/{solution_uuid}/user-progress

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solution_uuid   string  optional  

The UUID of the solution. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

is_completed   boolean  optional  

The solution category of the solution. Example : false Example: true

step   object  optional  

The current step the use is on. Example : 2

Patch Index

requires authentication

Performs specific updates for solutions

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/sort" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/sort';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/sort"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v1/solutions/{solutionCategory_uuid}/sort

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solutions_ranking_list   string  optional  

string[] A dictionary of uuids with uuid as key and rank as the value. Example : {"69e56cdf-cea8-4356-b35d-58d610aba886" : 1, "9c578b77-916a-4620-a246-fa951f422912" : 2} Example: et

solutionCategory_uuid   string  optional  

The UUID of the solution_category. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Patch

requires authentication

Patch a solution.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"solution_category_uuid\": \"681e8d62-bf7c-390d-9731-7af9423b3760\",
    \"name\": \"aliquid\",
    \"slug\": \"solution-1\",
    \"description\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\",
    \"video_url\": \"\\\"https::somevideo.com\\/thevideoforpestroutes\\\"\",
    \"status_uuid\": \"\\\"3c787d66-2a4f-3f1d-9591-c330be0abe82\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'solution_category_uuid' => '681e8d62-bf7c-390d-9731-7af9423b3760',
            'name' => 'aliquid',
            'slug' => 'solution-1',
            'description' => '"Lorem ipsum dolor sit amet consectetur adipisicing elit."',
            'video_url' => '"https::somevideo.com/thevideoforpestroutes"',
            'status_uuid' => '"3c787d66-2a4f-3f1d-9591-c330be0abe82"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "solution_category_uuid": "681e8d62-bf7c-390d-9731-7af9423b3760",
    "name": "aliquid",
    "slug": "solution-1",
    "description": "\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\"",
    "video_url": "\"https::somevideo.com\/thevideoforpestroutes\"",
    "status_uuid": "\"3c787d66-2a4f-3f1d-9591-c330be0abe82\""
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/solutions/{solution_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solution_uuid   string  optional  

The UUID of the solution. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

solution_category_uuid   uuid  optional  

The solution category of the solution. Example : "3c787d66-2a4f-3f1d-9591-c330be0abe82" Example: 681e8d62-bf7c-390d-9731-7af9423b3760

name   string  optional  

The name of the solution. Example : Solution 1 Example: aliquid

slug   string  optional  

The slug of the solution category. Example: solution-1

description   string  optional  

The attributes of the solution. Example: "Lorem ipsum dolor sit amet consectetur adipisicing elit."

video_url   string  optional  

The video url of the solution. Example: "https::somevideo.com/thevideoforpestroutes"

status_uuid   string  optional  

The video url of the solution. Example: "3c787d66-2a4f-3f1d-9591-c330be0abe82"

Delete

requires authentication

Delete a solution.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/solutions/{solution_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solution_uuid   string  optional  

The UUID of the solution. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Solution Category

API for Solution Category

List

requires authentication

Shows the list of solution categories.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/solution-categories" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"include_fields\": [
        \"user_progress\"
    ],
    \"ignore_cached\": false
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solution-categories';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'include_fields' => [
                'user_progress',
            ],
            'ignore_cached' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solution-categories"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "include_fields": [
        "user_progress"
    ],
    "ignore_cached": false
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/solution-categories

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

page   integer  optional  

The page number. Example : 1 Example: 1

page_size   integer  optional  

The number of record you want per page. Example : 5 Example: 13

sort_by   string  optional  

The column name. Example : name Example: autem

sort_order   string  optional  

The order in which you want your records. Example : asc Example: aut

search   string  optional  

The general search, it will find matching string. Example : home Example: vel

filter_by_parent_solution_category_uuids   string  optional  

array To filter the list of solution categories by parent solution category. Example : ["3c787d66-2a4f-3f1d-9591-c330be0abe82"] Example: rerum

Body Parameters

include_fields   string[]  optional  
Must be one of:
  • user_progress
  • solutions
ignore_cached   boolean  optional  

Example: false

Show

requires authentication

Show a single solution category.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/solution-categories/{solutionCategory_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solutionCategory_uuid   string  optional  

The UUID of the solution_category. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a new solution category.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/solution-categories" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"dolore\",
    \"description\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\",
    \"parent_solution_category_uuid\": \"\\\"3c787d66-2a4f-3f1d-9591-c330be0abe82\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solution-categories';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'dolore',
            'description' => '"Lorem ipsum dolor sit amet consectetur adipisicing elit."',
            'parent_solution_category_uuid' => '"3c787d66-2a4f-3f1d-9591-c330be0abe82"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solution-categories"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "dolore",
    "description": "\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\"",
    "parent_solution_category_uuid": "\"3c787d66-2a4f-3f1d-9591-c330be0abe82\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/solution-categories

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

The name of the solution category. Example : Solution Category 1 Example: dolore

description   string   

The attributes of the solution category. Example: "Lorem ipsum dolor sit amet consectetur adipisicing elit."

parent_solution_category_uuid   string  optional  

optional The parent of the solution category. Example: "3c787d66-2a4f-3f1d-9591-c330be0abe82"

Update

requires authentication

Update a solution category.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"quaerat\",
    \"description\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\",
    \"parent_solution_category_uuid\": \"\\\"3c787d66-2a4f-3f1d-9591-c330be0abe82\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'quaerat',
            'description' => '"Lorem ipsum dolor sit amet consectetur adipisicing elit."',
            'parent_solution_category_uuid' => '"3c787d66-2a4f-3f1d-9591-c330be0abe82"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "quaerat",
    "description": "\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\"",
    "parent_solution_category_uuid": "\"3c787d66-2a4f-3f1d-9591-c330be0abe82\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/solution-categories/{solutionCategory_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solutionCategory_uuid   string  optional  

The UUID of the solution_category. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the solution category. Example : Proposal Creation Example: quaerat

description   string   

The attributes of the solution category. Example: "Lorem ipsum dolor sit amet consectetur adipisicing elit."

parent_solution_category_uuid   string  optional  

optional The parent of the solution category. Example: "3c787d66-2a4f-3f1d-9591-c330be0abe82"

Reset

requires authentication

Reset a solution category user progress.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6/reset" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6/reset';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6/reset"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());

Request      

PUT api/v1/solution-categories/{solutionCategory_uuid}/reset

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solutionCategory_uuid   string  optional  

The UUID of the solution_category. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Update user progress

requires authentication

Update user progress.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6/user-progress" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"is_completed\": true,
    \"step\": []
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6/user-progress';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'is_completed' => true,
            'step' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6/user-progress"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "is_completed": true,
    "step": []
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/solution-categories/{solutionCategory_uuid}/user-progress

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solutionCategory_uuid   string  optional  

The UUID of the solution_category. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

is_completed   boolean  optional  

The solution category of the solution. Example : false Example: true

step   object  optional  

The current step the use is on. Example : 2

Patch Index

requires authentication

Performs specific updates for solution categories

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6/sort" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6/sort';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6/sort"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v1/solution-categories/{solutionCategory_uuid}/sort

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solution_categories_ranking_list   string  optional  

string[] A dictionary of uuids with uuid as key and rank as the value. Example : {"69e56cdf-cea8-4356-b35d-58d610aba886" : 1, "9c578b77-916a-4620-a246-fa951f422912" : 2} Example: sed

solutionCategory_uuid   string  optional  

The UUID of the solution_category. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Patch

requires authentication

Patch a solution category.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"eveniet\",
    \"description\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\",
    \"parent_solution_category_uuid\": \"\\\"3c787d66-2a4f-3f1d-9591-c330be0abe82\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'eveniet',
            'description' => '"Lorem ipsum dolor sit amet consectetur adipisicing elit."',
            'parent_solution_category_uuid' => '"3c787d66-2a4f-3f1d-9591-c330be0abe82"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "eveniet",
    "description": "\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\"",
    "parent_solution_category_uuid": "\"3c787d66-2a4f-3f1d-9591-c330be0abe82\""
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/solution-categories/{solutionCategory_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solutionCategory_uuid   string  optional  

The UUID of the solution_category. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the solution category. Example : Proposal Creation Example: eveniet

description   string   

The attributes of the solution category. Example: "Lorem ipsum dolor sit amet consectetur adipisicing elit."

parent_solution_category_uuid   string  optional  

optional The parent of the solution category. Example: "3c787d66-2a4f-3f1d-9591-c330be0abe82"

Delete

requires authentication

Delete a solution category.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solution-categories/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/solution-categories/{solutionCategory_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solutionCategory_uuid   string  optional  

The UUID of the solution_category. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Solution Feedback

API for Solution Feedback

List

requires authentication

Shows the list of solution feedbacks.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/solutions/{solution_uuid}/feedback

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

page   integer  optional  

The page number. Example : 1 Example: 6

page_size   integer  optional  

The number of record you want per page. Example : 5 Example: 18

sort_by   string  optional  

The column name. Example : name Example: optio

sort_order   string  optional  

The order in which you want your records. Example : asc Example: nisi

search   string  optional  

The general search, it will find matching string. Example : home Example: dicta

solution_uuid   string  optional  

The UUID of the solution. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Show

requires authentication

Show a single solution.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/solutions/{solution_uuid}/feedback/{solutionFeedback_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solution_uuid   string  optional  

The UUID of the solution. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

solutionFeedback_uuid   string  optional  

The UUID of the solution_feedback. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a new solution feedback.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"rate\": 20,
    \"feedback\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'rate' => 20,
            'feedback' => '"Lorem ipsum dolor sit amet consectetur adipisicing elit."',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "rate": 20,
    "feedback": "\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/solutions/{solution_uuid}/feedback

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solution_uuid   string  optional  

The UUID of the solution. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

rate   integer   

The name of the solution. Example : 5 Example: 20

feedback   string  optional  

The attributes of the solution. Example: "Lorem ipsum dolor sit amet consectetur adipisicing elit."

Update

requires authentication

Update a solution .

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"rate\": 18,
    \"feedback\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'rate' => 18,
            'feedback' => '"Lorem ipsum dolor sit amet consectetur adipisicing elit."',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "rate": 18,
    "feedback": "\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/solutions/{solution_uuid}/feedback/{solutionFeedback_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solution_uuid   string  optional  

The UUID of the solution. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

solutionFeedback_uuid   string  optional  

The UUID of the solution_feedback. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

rate   integer   

The name of the solution. Example : 5 Example: 18

feedback   string  optional  

The attributes of the solution. Example: "Lorem ipsum dolor sit amet consectetur adipisicing elit."

Patch

requires authentication

Patch a solution feedback.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"rate\": 1,
    \"feedback\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'rate' => 1,
            'feedback' => '"Lorem ipsum dolor sit amet consectetur adipisicing elit."',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "rate": 1,
    "feedback": "\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\""
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/solutions/{solution_uuid}/feedback/{solutionFeedback_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solution_uuid   string  optional  

The UUID of the solution. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

solutionFeedback_uuid   string  optional  

The UUID of the solution_feedback. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

rate   integer   

The name of the solution. Example : 5 Example: 1

feedback   string  optional  

The attributes of the solution. Example: "Lorem ipsum dolor sit amet consectetur adipisicing elit."

Delete

requires authentication

Remove the specified resource from storage.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/solutions/3fa85f64-5717-4562-b3fc-2c963f66afa6/feedback/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/solutions/{solution_uuid}/feedback/{solutionFeedback_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

solution_uuid   string  optional  

The UUID of the solution. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

solutionFeedback_uuid   string  optional  

The UUID of the solution_feedback. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

States

Retrieve states/provinces for a given country. Used in address forms and tax rate configuration by geographic region.

List / Fetch

Shows the list of state or fetch single record using uuid.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/countries/{countryUuid}/states/{countryStateUuid}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"country_uuid\": \"ecd24580-2749-11ec-9b86-1102c06e74b4\",
    \"country_state_uuid\": \"ed20f1c0-2749-11ec-85fa-a791bcbdc50d\",
    \"name\": \"Queen Creek\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/countries/{countryUuid}/states/{countryStateUuid}';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'country_uuid' => 'ecd24580-2749-11ec-9b86-1102c06e74b4',
            'country_state_uuid' => 'ed20f1c0-2749-11ec-85fa-a791bcbdc50d',
            'name' => 'Queen Creek',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/countries/{countryUuid}/states/{countryStateUuid}"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "country_uuid": "ecd24580-2749-11ec-9b86-1102c06e74b4",
    "country_state_uuid": "ed20f1c0-2749-11ec-85fa-a791bcbdc50d",
    "name": "Queen Creek"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/countries/{countryUuid}/states/{countryStateUuid}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

country_uuid   string  optional  

optional The country uuid. Example: ecd24580-2749-11ec-9b86-1102c06e74b4

country_state_uuid   string  optional  

optional The state uuid. Example: ed20f1c0-2749-11ec-85fa-a791bcbdc50d

name   string  optional  

optional The state name. Example: Queen Creek

Support Requests

Submit support tickets to Smarter Launch customer service. Attach screenshots and describe issues for technical assistance.

Store

requires authentication

Send support request from users

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/support-request" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"support_type\": \"\'General Inquiry\'\",
    \"description\": \"\'I cannot access documents. Please help.\'\",
    \"screenshots_url\": [
        \"https:\\/\\/example.net\\/image1.jpg\",
        \"https:\\/\\/example.net\\/image1.png\"
    ],
    \"no_attachments\": false
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/support-request';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'support_type' => '\'General Inquiry\'',
            'description' => '\'I cannot access documents. Please help.\'',
            'screenshots_url' => [
                'https://example.net/image1.jpg',
                'https://example.net/image1.png',
            ],
            'no_attachments' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/support-request"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "support_type": "'General Inquiry'",
    "description": "'I cannot access documents. Please help.'",
    "screenshots_url": [
        "https:\/\/example.net\/image1.jpg",
        "https:\/\/example.net\/image1.png"
    ],
    "no_attachments": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/support-request

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

support_type   string   

The support type. Example: 'General Inquiry'

description   string   

The support request details. Example: 'I cannot access documents. Please help.'

recordings   object  optional  
client_detail   object  optional  
screenshots_url   string[]   

The screenshots URL string.

error_detail   object  optional  
no_attachments   boolean   

Check if request has attachments. Example: false

Upload

requires authentication

Upload photos for Cover Letter or Photo Layout pages

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/support-request-upload/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "document_template_page_title=Cover Letter"\
    --form "title=Cover Letter Featured Image"\
    --form "decription=Lorem ipsum dolor"\
    --form "append=1"\
    --form "screenshot_file=@/tmp/phpiQ4QLI" \
    --form "photo_file=@/tmp/phpOKAn0K" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/support-request-upload/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'document_template_page_title',
                'contents' => 'Cover Letter'
            ],
            [
                'name' => 'title',
                'contents' => 'Cover Letter Featured Image'
            ],
            [
                'name' => 'decription',
                'contents' => 'Lorem ipsum dolor'
            ],
            [
                'name' => 'append',
                'contents' => '1'
            ],
            [
                'name' => 'screenshot_file',
                'contents' => fopen('/tmp/phpiQ4QLI', 'r')
            ],
            [
                'name' => 'photo_file',
                'contents' => fopen('/tmp/phpOKAn0K', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/support-request-upload/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('document_template_page_title', 'Cover Letter');
body.append('title', 'Cover Letter Featured Image');
body.append('decription', 'Lorem ipsum dolor');
body.append('append', '1');
body.append('screenshot_file', document.querySelector('input[name="screenshot_file"]').files[0]);
body.append('photo_file', document.querySelector('input[name="photo_file"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/support-request-upload/{supportRequest_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

supportRequest_uuid   string  optional  

The UUID of the support_request. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

screenshot_file   file   

Must be a file. Must be an image. Example: /tmp/phpiQ4QLI

document_template_page_title   string   

The template page title. Example: Cover Letter

photo_file   file   

The photo of template page. Example: /tmp/phpOKAn0K

title   string  optional  

optional The title of the photo. Example: Cover Letter Featured Image

decription   string  optional  

optional The description of the photo. Example: Lorem ipsum dolor

append   boolean  optional  

optional Determine whether to append uploaded photo to existing photos of template page. Example: true

Symbols

Define diagram symbols and icons used in property maps and treatment diagrams (e.g., bait station icons, treatment area markers). Upload custom symbol images.

List

requires authentication

Shows the list of company symbols with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols?page=20&page_size=12&sort_by=adipisci&sort_order=repudiandae&search=cum" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '20',
            'page_size' => '12',
            'sort_by' => 'adipisci',
            'sort_order' => 'repudiandae',
            'search' => 'cum',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols"
);

const params = {
    "page": "20",
    "page_size": "12",
    "sort_by": "adipisci",
    "sort_order": "repudiandae",
    "search": "cum",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/symbols

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

with_trashed   string  optional  

boolean To display soft deleted data as well. Example : true Example: tempora

category_uuids   string  optional  

string[] To filter symbols by category. Example : [3245d630-24fd-11ec-accd-e397aec85c7f, 3245d630-24fd-11ec-accd-e397aec85c7f] Example: ut

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 20

page_size   integer  optional  

optional The number of record you want per page. Example: 12

sort_by   string  optional  

optional The column name. Example: adipisci

sort_order   string  optional  

optional The order in which you want your records. Example: repudiandae

search   string  optional  

optional The general search, it will find matching string. Example: cum

Show

requires authentication

Show a single company symbol.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/symbols/{companySymbol_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companySymbol_uuid   string  optional  

The UUID of the company_symbol. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a newly created company symbol.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=corporis"\
    --form "source=asperiores"\
    --form "description=Aut dolorem nam dolor."\
    --form "icon_url=http://smarterlaunch.local/image1.jpg"\
    --form "company_product_uuids[]=laborum"\
    --form "icon_file=@/tmp/phpi0PQNK" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'name',
                'contents' => 'corporis'
            ],
            [
                'name' => 'source',
                'contents' => 'asperiores'
            ],
            [
                'name' => 'description',
                'contents' => 'Aut dolorem nam dolor.'
            ],
            [
                'name' => 'icon_url',
                'contents' => 'http://smarterlaunch.local/image1.jpg'
            ],
            [
                'name' => 'company_product_uuids[]',
                'contents' => 'laborum'
            ],
            [
                'name' => 'icon_file',
                'contents' => fopen('/tmp/phpi0PQNK', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('name', 'corporis');
body.append('source', 'asperiores');
body.append('description', 'Aut dolorem nam dolor.');
body.append('icon_url', 'http://smarterlaunch.local/image1.jpg');
body.append('company_product_uuids[]', 'laborum');
body.append('icon_file', document.querySelector('input[name="icon_file"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/symbols

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the symbol. Example : Dig Example: corporis

source   string   

The source of the symbol. Example : text Example: asperiores

description   string  optional  

optional The description of the symbol. Example : text Example: Aut dolorem nam dolor.

icon_url   string  optional  

optional The image url of the symbol. Example: http://smarterlaunch.local/image1.jpg

icon_file   file  optional  

optional The file of the symbol image. Example: /tmp/phpi0PQNK

company_product_uuids   string[]  optional  

of string optional The products of the symbol.

Update

requires authentication

Update a company symbol.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=ducimus"\
    --form "source=aut"\
    --form "description=Explicabo corporis atque asperiores deleniti voluptates dolorem incidunt."\
    --form "icon_url=http://smarterlaunch.local/image1.jpg"\
    --form "company_product_uuids[]=qui"\
    --form "icon_file=@/tmp/php192jIK" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'name',
                'contents' => 'ducimus'
            ],
            [
                'name' => 'source',
                'contents' => 'aut'
            ],
            [
                'name' => 'description',
                'contents' => 'Explicabo corporis atque asperiores deleniti voluptates dolorem incidunt.'
            ],
            [
                'name' => 'icon_url',
                'contents' => 'http://smarterlaunch.local/image1.jpg'
            ],
            [
                'name' => 'company_product_uuids[]',
                'contents' => 'qui'
            ],
            [
                'name' => 'icon_file',
                'contents' => fopen('/tmp/php192jIK', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('name', 'ducimus');
body.append('source', 'aut');
body.append('description', 'Explicabo corporis atque asperiores deleniti voluptates dolorem incidunt.');
body.append('icon_url', 'http://smarterlaunch.local/image1.jpg');
body.append('company_product_uuids[]', 'qui');
body.append('icon_file', document.querySelector('input[name="icon_file"]').files[0]);

fetch(url, {
    method: "PUT",
    headers,
    body,
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/symbols/{companySymbol_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

companySymbolUuid   string   

The uuid of the symbol. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companySymbol_uuid   string  optional  

The UUID of the company_symbol. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the symbol. Example : Dig Example: ducimus

source   string   

The source of the symbol. Example : text Example: aut

description   string  optional  

optional The description of the symbol. Example : text Example: Explicabo corporis atque asperiores deleniti voluptates dolorem incidunt.

icon_url   string  optional  

optional The image url of the symbol. Example: http://smarterlaunch.local/image1.jpg

icon_file   file  optional  

optional The file of the symbol image. Example: /tmp/php192jIK

company_product_uuids   string[]  optional  

of string optional The products of the symbol.

Update

requires authentication

Update a company symbol.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=voluptatibus"\
    --form "source=at"\
    --form "description=Ratione quisquam laudantium vel eos."\
    --form "icon_url=http://smarterlaunch.local/image1.jpg"\
    --form "company_product_uuids[]=quasi"\
    --form "icon_file=@/tmp/phpiTpIXK" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'name',
                'contents' => 'voluptatibus'
            ],
            [
                'name' => 'source',
                'contents' => 'at'
            ],
            [
                'name' => 'description',
                'contents' => 'Ratione quisquam laudantium vel eos.'
            ],
            [
                'name' => 'icon_url',
                'contents' => 'http://smarterlaunch.local/image1.jpg'
            ],
            [
                'name' => 'company_product_uuids[]',
                'contents' => 'quasi'
            ],
            [
                'name' => 'icon_file',
                'contents' => fopen('/tmp/phpiTpIXK', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('name', 'voluptatibus');
body.append('source', 'at');
body.append('description', 'Ratione quisquam laudantium vel eos.');
body.append('icon_url', 'http://smarterlaunch.local/image1.jpg');
body.append('company_product_uuids[]', 'quasi');
body.append('icon_file', document.querySelector('input[name="icon_file"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/symbols/{companySymbol_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

companySymbolUuid   string   

The uuid of the symbol. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companySymbol_uuid   string  optional  

The UUID of the company_symbol. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the symbol. Example : Dig Example: voluptatibus

source   string   

The source of the symbol. Example : text Example: at

description   string  optional  

optional The description of the symbol. Example : text Example: Ratione quisquam laudantium vel eos.

icon_url   string  optional  

optional The image url of the symbol. Example: http://smarterlaunch.local/image1.jpg

icon_file   file  optional  

optional The file of the symbol image. Example: /tmp/phpiTpIXK

company_product_uuids   string[]  optional  

of string optional The products of the symbol.

Patch

requires authentication

Patch a company symbol.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=sed"\
    --form "source=molestiae"\
    --form "description=Iusto enim doloremque cumque minima."\
    --form "icon_url=http://smarterlaunch.local/image1.jpg"\
    --form "icon_file=@/tmp/phpoyffZI" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'name',
                'contents' => 'sed'
            ],
            [
                'name' => 'source',
                'contents' => 'molestiae'
            ],
            [
                'name' => 'description',
                'contents' => 'Iusto enim doloremque cumque minima.'
            ],
            [
                'name' => 'icon_url',
                'contents' => 'http://smarterlaunch.local/image1.jpg'
            ],
            [
                'name' => 'icon_file',
                'contents' => fopen('/tmp/phpoyffZI', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('name', 'sed');
body.append('source', 'molestiae');
body.append('description', 'Iusto enim doloremque cumque minima.');
body.append('icon_url', 'http://smarterlaunch.local/image1.jpg');
body.append('icon_file', document.querySelector('input[name="icon_file"]').files[0]);

fetch(url, {
    method: "PATCH",
    headers,
    body,
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/symbols/{companySymbol_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

companySymbolUuid   string   

The uuid of the symbol. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companySymbol_uuid   string  optional  

The UUID of the company_symbol. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the symbol. Example : Dig Example: sed

source   string   

The source of the symbol. Example : text Example: molestiae

description   string  optional  

optional The description of the symbol. Example : text Example: Iusto enim doloremque cumque minima.

icon_url   string  optional  

optional The image url of the symbol. Example: http://smarterlaunch.local/image1.jpg

icon_file   file  optional  

optional The file of the symbol image. Example: /tmp/phpoyffZI

Delete

requires authentication

Delete a company symbol.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/symbols/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/symbols/{companySymbol_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companySymbol_uuid   string  optional  

The UUID of the company_symbol. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Tags

Create custom tags to label and organize customers, proposals, and other records for filtering, searching, and reporting purposes.

List

requires authentication

Shows the list of tags with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/tags?page=1&page_size=13&sort_by=iure&sort_order=eveniet&search=est" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/tags';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'page_size' => '13',
            'sort_by' => 'iure',
            'sort_order' => 'eveniet',
            'search' => 'est',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/tags"
);

const params = {
    "page": "1",
    "page_size": "13",
    "sort_by": "iure",
    "sort_order": "eveniet",
    "search": "est",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/tags

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

category_group   string  optional  

Filter by category group. Example : PROPOSAL Example: ut

uuids   string  optional  

string[] Filter by specific tag UUIDs. Example : ["550e8400-e29b-41d4-a716-446655440001"] Example: et

Query Parameters

page   integer  optional  

optional The page number. Example: 1

page_size   integer  optional  

optional The number of record you want per page. Example: 13

sort_by   string  optional  

optional The column name. Example: iure

sort_order   string  optional  

optional The order in which you want your records. Example: eveniet

search   string  optional  

optional The general search, it will find matching string. Example: est

Create

requires authentication

Store a newly created Tag.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/tags" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Needs Review\",
    \"description\": \"Proposals that need review\",
    \"category_group\": \"PROPOSAL\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/tags';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Needs Review',
            'description' => 'Proposals that need review',
            'category_group' => 'PROPOSAL',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/tags"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Needs Review",
    "description": "Proposals that need review",
    "category_group": "PROPOSAL"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/tags

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the tag. Example: Needs Review

description   string  optional  

The description of the tag. Example: Proposals that need review

category_group   string   

The category group. Example: PROPOSAL

Show

requires authentication

Display the specified Tag.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/tags/{tag_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

tag_uuid   string  optional  

The UUID of the tag. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Update

requires authentication

Update the specified Tag.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Needs Review\",
    \"description\": \"Proposals that need review\",
    \"category_group\": \"PROPOSAL\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Needs Review',
            'description' => 'Proposals that need review',
            'category_group' => 'PROPOSAL',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Needs Review",
    "description": "Proposals that need review",
    "category_group": "PROPOSAL"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/tags/{tag_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

tag_uuid   string  optional  

The UUID of the tag. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the tag. Example: Needs Review

description   string  optional  

The description of the tag. Example: Proposals that need review

category_group   string   

The category group. Example: PROPOSAL

Delete

requires authentication

Remove the specified Tag.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/tags/{tag_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

tag_uuid   string  optional  

The UUID of the tag. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

List Global Tags

requires authentication

Shows the list of global tags (not company-scoped) with pagination. Admins see all global tags, non-admins see only their company's global tags.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/tags?page=2&page_size=6&sort_by=similique&sort_order=voluptatibus&search=totam" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/tags';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '2',
            'page_size' => '6',
            'sort_by' => 'similique',
            'sort_order' => 'voluptatibus',
            'search' => 'totam',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/tags"
);

const params = {
    "page": "2",
    "page_size": "6",
    "sort_by": "similique",
    "sort_order": "voluptatibus",
    "search": "totam",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/tags

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

category_group   string  optional  

Filter by category group. Example : IMPORT_SET Example: ipsum

Query Parameters

page   integer  optional  

optional The page number. Example: 2

page_size   integer  optional  

optional The number of record you want per page. Example: 6

sort_by   string  optional  

optional The column name. Example: similique

sort_order   string  optional  

optional The order in which you want your records. Example: voluptatibus

search   string  optional  

optional The general search. Example: totam

Create Global Tag

requires authentication

Store a newly created global Tag (admin/super admin only).

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/tags" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Default Import Tag\",
    \"description\": \"Default import set tag\",
    \"category_group\": \"IMPORT_SET\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/tags';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Default Import Tag',
            'description' => 'Default import set tag',
            'category_group' => 'IMPORT_SET',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/tags"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Default Import Tag",
    "description": "Default import set tag",
    "category_group": "IMPORT_SET"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/tags

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

The name of the tag. Example: Default Import Tag

description   string  optional  

The description of the tag. Example: Default import set tag

category_group   string   

The category group. Example: IMPORT_SET

Show Global Tag

requires authentication

Display the specified global Tag.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/tags/{tag_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

tag_uuid   string  optional  

The UUID of the tag. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Update Global Tag

requires authentication

Update the specified global Tag (admin/super admin only).

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Default Import Tag\",
    \"description\": \"Updated description\",
    \"category_group\": \"IMPORT_SET\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Default Import Tag',
            'description' => 'Updated description',
            'category_group' => 'IMPORT_SET',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Default Import Tag",
    "description": "Updated description",
    "category_group": "IMPORT_SET"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/tags/{tag_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

tag_uuid   string  optional  

The UUID of the tag. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the tag. Example: Default Import Tag

description   string  optional  

The description of the tag. Example: Updated description

category_group   string   

The category group. Example: IMPORT_SET

Delete Global Tag

requires authentication

Remove the specified global Tag (admin/super admin only).

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/tags/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/tags/{tag_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

tag_uuid   string  optional  

The UUID of the tag. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Taxes

Configure sales tax rates for different states, counties, and municipalities. Automatically apply correct tax rates to proposals and invoices based on service address location.

List

requires authentication

Shows the list of taxes with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes?page=16&page_size=11&sort_by=vel&sort_order=aperiam&search=dolores" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '16',
            'page_size' => '11',
            'sort_by' => 'vel',
            'sort_order' => 'aperiam',
            'search' => 'dolores',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes"
);

const params = {
    "page": "16",
    "page_size": "11",
    "sort_by": "vel",
    "sort_order": "aperiam",
    "search": "dolores",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/taxes

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

country_uuid   string  optional  

The UUID of country. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 1dafbc61-d20b-31a7-9025-b09419b96686

country_state_uuids   integer  optional  

string[] The UUID of country state. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 5

is_compound   string  optional  

boolean To filter by is_compound flag. Example : true Example: natus

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 16

page_size   integer  optional  

optional The number of record you want per page. Example: 11

sort_by   string  optional  

optional The column name. Example: vel

sort_order   string  optional  

optional The order in which you want your records. Example: aperiam

search   string  optional  

optional The general search, it will find matching string (name, postal_code, cities). Example: dolores

Patch Index

requires authentication

Performs specific updates for tax settings

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/taxes

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

tax_ranking_list   string  optional  

string[] A dictionary of uuids with uuid as key and rank as the value. Example : {"69e56cdf-cea8-4356-b35d-58d610aba886" : 1, "9c578b77-916a-4620-a246-fa951f422912" : 2} Example: totam

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Show

requires authentication

Show a single tax.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/taxes/{companyTax_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyTax_uuid   string  optional  

The UUID of the company_tax. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a newly created tax.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"country_uuid\": \"8724e1e0-906d-3967-837a-4cca4571e064\",
    \"country_state_uuids\": [
        \"nisi\"
    ],
    \"name\": \"et\",
    \"postal_codes\": 85410,
    \"cities\": \"Queen Creek\",
    \"rate\": \"12.0000\",
    \"is_compound\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'country_uuid' => '8724e1e0-906d-3967-837a-4cca4571e064',
            'country_state_uuids' => [
                'nisi',
            ],
            'name' => 'et',
            'postal_codes' => 85410,
            'cities' => 'Queen Creek',
            'rate' => '12.0000',
            'is_compound' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "country_uuid": "8724e1e0-906d-3967-837a-4cca4571e064",
    "country_state_uuids": [
        "nisi"
    ],
    "name": "et",
    "postal_codes": 85410,
    "cities": "Queen Creek",
    "rate": "12.0000",
    "is_compound": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/taxes

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

country_uuid   string   

The UUID of a country. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 8724e1e0-906d-3967-837a-4cca4571e064

country_state_uuids   string[]   

An array of country state UUID. Example : ["815d3d9c-f371-3781-8456-7e6954b5b0f5", "815d3d9c-f371-3781-8456-7e6954b5b0f2"]

name   string   

The name of the tax. Example : Pest Route Initial Proposal Example: et

postal_codes   string[]  optional  

optional The postal code of the company. Example: 85410

cities   string  optional  

required[] The company city name. Example: Queen Creek

rate   decimal   

The tax rate. Example: 12.0000

is_compound   boolean   

A flag that indicate if the tax is a compound. Example: true

Update

requires authentication

Update a tax.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"country_uuid\": \"6503c6fe-b516-3b85-a46c-a6091c51f570\",
    \"country_state_uuids\": [
        \"necessitatibus\"
    ],
    \"name\": \"modi\",
    \"postal_codes\": \"85410\",
    \"cities\": \"Queen Creek\",
    \"rate\": \"12.0000\",
    \"is_compound\": true,
    \"rank\": 1
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'country_uuid' => '6503c6fe-b516-3b85-a46c-a6091c51f570',
            'country_state_uuids' => [
                'necessitatibus',
            ],
            'name' => 'modi',
            'postal_codes' => '85410',
            'cities' => 'Queen Creek',
            'rate' => '12.0000',
            'is_compound' => true,
            'rank' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "country_uuid": "6503c6fe-b516-3b85-a46c-a6091c51f570",
    "country_state_uuids": [
        "necessitatibus"
    ],
    "name": "modi",
    "postal_codes": "85410",
    "cities": "Queen Creek",
    "rate": "12.0000",
    "is_compound": true,
    "rank": 1
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/taxes/{companyTax_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyTax_uuid   string  optional  

The UUID of the company_tax. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

country_uuid   string   

The UUID of a country. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 6503c6fe-b516-3b85-a46c-a6091c51f570

country_state_uuids   string[]   

The UUID of a country state. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5"

name   string   

The name of the tax. Example : Pest Route Initial Proposal Example: modi

postal_codes   string  optional  

optional The postal code of the company. Example: 85410

cities   string   

The company city name. Example: Queen Creek

rate   decimal   

The tax rate. Example: 12.0000

is_compound   boolean   

A flag that indicate if the tax is a compound. Example: true

rank   integer  optional  

The rank/order number of tax in a company. Example: 1

Patch

requires authentication

Patch a tax.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"country_uuid\": \"767e2eaa-8701-3eef-9b67-ac0fdd72a660\",
    \"country_state_uuids\": [
        \"eos\"
    ],
    \"name\": \"eius\",
    \"postal_codes\": \"85410\",
    \"cities\": \"Queen Creek\",
    \"rate\": \"12.0000\",
    \"is_compound\": true,
    \"rank\": 1
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'country_uuid' => '767e2eaa-8701-3eef-9b67-ac0fdd72a660',
            'country_state_uuids' => [
                'eos',
            ],
            'name' => 'eius',
            'postal_codes' => '85410',
            'cities' => 'Queen Creek',
            'rate' => '12.0000',
            'is_compound' => true,
            'rank' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "country_uuid": "767e2eaa-8701-3eef-9b67-ac0fdd72a660",
    "country_state_uuids": [
        "eos"
    ],
    "name": "eius",
    "postal_codes": "85410",
    "cities": "Queen Creek",
    "rate": "12.0000",
    "is_compound": true,
    "rank": 1
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/taxes/{companyTax_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyTax_uuid   string  optional  

The UUID of the company_tax. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

country_uuid   string  optional  

optional The UUID of a country. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5" Example: 767e2eaa-8701-3eef-9b67-ac0fdd72a660

country_state_uuids   string[]  optional  

optional The UUID of a country state. Example : "815d3d9c-f371-3781-8456-7e6954b5b0f5"

name   string  optional  

optional The name of the tax. Example : Pest Route Initial Proposal Example: eius

postal_codes   string  optional  

optional The postal code of the company. Example: 85410

cities   string  optional  

optional The company city name. Example: Queen Creek

rate   decimal  optional  

optional The tax rate. Example: 12.0000

is_compound   boolean  optional  

optional A flag that indicate if the tax is a compound. Example: true

rank   integer  optional  

The rank/order number of tax in a company. Example: 1

Delete

requires authentication

Delete a tax.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/taxes/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/taxes/{companyTax_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

companyTax_uuid   string  optional  

The UUID of the company_tax. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Teams

Organize users into named teams for filtering and reporting. Team supervisors can view data filtered to their assigned team.

List

requires authentication

Shows the list of teams with pagination.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams?page=17&page_size=17&sort_by=tempore&sort_order=impedit&search=ut" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '17',
            'page_size' => '17',
            'sort_by' => 'tempore',
            'sort_order' => 'impedit',
            'search' => 'ut',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams"
);

const params = {
    "page": "17",
    "page_size": "17",
    "sort_by": "tempore",
    "sort_order": "impedit",
    "search": "ut",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/teams

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Query Parameters

page   integer  optional  

optional The page number. Example: 17

page_size   integer  optional  

optional The number of record you want per page. Example: 17

sort_by   string  optional  

optional The column name. Example: tempore

sort_order   string  optional  

optional The order in which you want your records. Example: impedit

search   string  optional  

optional The general search, it will find matching string. Example: ut

Show

requires authentication

Show a single team.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/companies/{company_uuid}/teams/{team_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

team_uuid   string  optional  

The UUID of the team. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Store

requires authentication

Store a newly created team.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"ut\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'ut',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "ut"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/companies/{company_uuid}/teams

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the team. Example : "Engineering" Example: ut

Update

requires authentication

Update a team.

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"quas\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'quas',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "quas"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/v1/companies/{company_uuid}/teams/{team_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

team_uuid   string  optional  

The UUID of the team. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string   

The name of the team. Example : "Accounting" Example: quas

Patch

requires authentication

Patch a company team.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"assumenda\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'assumenda',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "assumenda"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/companies/{company_uuid}/teams/{team_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

team_uuid   string  optional  

The UUID of the team. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

name   string  optional  

The name of the team. Example : "Accounting" Example: assumenda

Delete

requires authentication

Delete a team.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/teams/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/companies/{company_uuid}/teams/{team_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

company_uuid   string  optional  

The UUID of the company. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

team_uuid   string  optional  

The UUID of the team. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

User

API for user details

List / Fetch

requires authentication

Shows the list of users or fetch single record using uuid.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/users" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/users';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/users"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "uuid": "3245d630-24fd-11ec-accd-e397aec85c7f"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/users

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user_uuid   string  optional  

The UUID of the user. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

uuid   string  optional  

optional The uuid of the user. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

List / Fetch

requires authentication

Shows the list of users or fetch single record using uuid.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "uuid": "3245d630-24fd-11ec-accd-e397aec85c7f"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/users/{user_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user_uuid   string  optional  

The UUID of the user. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

uuid   string  optional  

optional The uuid of the user. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

Store user profile pic.

requires authentication

This endpoint lets user to upload or update profile picture.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6/image" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "uuid=3245d630-24fd-11ec-accd-e397aec85c7f"\
    --form "profile_photo_url=@/tmp/phpNY3LpK" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6/image';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'uuid',
                'contents' => '3245d630-24fd-11ec-accd-e397aec85c7f'
            ],
            [
                'name' => 'profile_photo_url',
                'contents' => fopen('/tmp/phpNY3LpK', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6/image"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('uuid', '3245d630-24fd-11ec-accd-e397aec85c7f');
body.append('profile_photo_url', document.querySelector('input[name="profile_photo_url"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/users/{user_uuid}/image

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

user_uuid   string  optional  

The UUID of the user. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

profile_photo_url   file   

The image file. Example: /tmp/phpNY3LpK

uuid   string   

The user uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

Store user signature pic.

requires authentication

This endpoint lets user to upload or update signature picture.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6/signature-image" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "uuid=3245d630-24fd-11ec-accd-e397aec85c7f"\
    --form "signature_photo_url=@/tmp/phpyHj9KK" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6/signature-image';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'uuid',
                'contents' => '3245d630-24fd-11ec-accd-e397aec85c7f'
            ],
            [
                'name' => 'signature_photo_url',
                'contents' => fopen('/tmp/phpyHj9KK', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6/signature-image"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('uuid', '3245d630-24fd-11ec-accd-e397aec85c7f');
body.append('signature_photo_url', document.querySelector('input[name="signature_photo_url"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/users/{user_uuid}/signature-image

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

user_uuid   string  optional  

The UUID of the user. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

signature_photo_url   file   

The image file. Example: /tmp/phpyHj9KK

uuid   string   

The user uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

Create / Update.

requires authentication

This endpoint lets user to create or update single record using uuid

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/users" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "uuid=3245d630-24fd-11ec-accd-e397aec85c7f"\
    --form "first_name=John"\
    --form "last_name=Smith"\
    --form "phone=7897897894"\
    --form "email=hello@smarterlaunch.com"\
    --form "position=Manager"\
    --form "new_password=XXX"\
    --form "confirm_new_password=XTXT"\
    --form "profile_photo_url=@/tmp/phptQGxOK" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/users';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'uuid',
                'contents' => '3245d630-24fd-11ec-accd-e397aec85c7f'
            ],
            [
                'name' => 'first_name',
                'contents' => 'John'
            ],
            [
                'name' => 'last_name',
                'contents' => 'Smith'
            ],
            [
                'name' => 'phone',
                'contents' => '7897897894'
            ],
            [
                'name' => 'email',
                'contents' => 'hello@smarterlaunch.com'
            ],
            [
                'name' => 'position',
                'contents' => 'Manager'
            ],
            [
                'name' => 'new_password',
                'contents' => 'XXX'
            ],
            [
                'name' => 'confirm_new_password',
                'contents' => 'XTXT'
            ],
            [
                'name' => 'profile_photo_url',
                'contents' => fopen('/tmp/phptQGxOK', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/users"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('uuid', '3245d630-24fd-11ec-accd-e397aec85c7f');
body.append('first_name', 'John');
body.append('last_name', 'Smith');
body.append('phone', '7897897894');
body.append('email', 'hello@smarterlaunch.com');
body.append('position', 'Manager');
body.append('new_password', 'XXX');
body.append('confirm_new_password', 'XTXT');
body.append('profile_photo_url', document.querySelector('input[name="profile_photo_url"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/users

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

user_uuid   string  optional  

The UUID of the user. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

uuid   string  optional  

optional The document uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

first_name   string   

The first name of the customer. Example: John

last_name   string   

The last name of the customer. Example: Smith

phone   string   

The phone of the customer. Example: 7897897894

email   string  optional  

optional The email of the customer. Example: hello@smarterlaunch.com

position   string   

The position of the customer. Example: Manager

new_password   string  optional  

optional The current password of the customer. Example: XXX

confirm_new_password   string  optional  

optional The confirmation of the new password of the customer. Example: XTXT

profile_photo_url   file  optional  

optional The image file. Example: /tmp/phptQGxOK

Create / Update.

requires authentication

This endpoint lets user to create or update single record using uuid

Example request:
curl --request PUT \
    "https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "uuid=3245d630-24fd-11ec-accd-e397aec85c7f"\
    --form "first_name=John"\
    --form "last_name=Smith"\
    --form "phone=7897897894"\
    --form "email=hello@smarterlaunch.com"\
    --form "position=Manager"\
    --form "new_password=XXX"\
    --form "confirm_new_password=XTXT"\
    --form "profile_photo_url=@/tmp/phpOieCbM" 
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'uuid',
                'contents' => '3245d630-24fd-11ec-accd-e397aec85c7f'
            ],
            [
                'name' => 'first_name',
                'contents' => 'John'
            ],
            [
                'name' => 'last_name',
                'contents' => 'Smith'
            ],
            [
                'name' => 'phone',
                'contents' => '7897897894'
            ],
            [
                'name' => 'email',
                'contents' => 'hello@smarterlaunch.com'
            ],
            [
                'name' => 'position',
                'contents' => 'Manager'
            ],
            [
                'name' => 'new_password',
                'contents' => 'XXX'
            ],
            [
                'name' => 'confirm_new_password',
                'contents' => 'XTXT'
            ],
            [
                'name' => 'profile_photo_url',
                'contents' => fopen('/tmp/phpOieCbM', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('uuid', '3245d630-24fd-11ec-accd-e397aec85c7f');
body.append('first_name', 'John');
body.append('last_name', 'Smith');
body.append('phone', '7897897894');
body.append('email', 'hello@smarterlaunch.com');
body.append('position', 'Manager');
body.append('new_password', 'XXX');
body.append('confirm_new_password', 'XTXT');
body.append('profile_photo_url', document.querySelector('input[name="profile_photo_url"]').files[0]);

fetch(url, {
    method: "PUT",
    headers,
    body,
}).then(response => response.json());

Request      

PUT api/v1/users/{user_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

user_uuid   string  optional  

The UUID of the user. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

uuid   string  optional  

optional The document uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

first_name   string   

The first name of the customer. Example: John

last_name   string   

The last name of the customer. Example: Smith

phone   string   

The phone of the customer. Example: 7897897894

email   string  optional  

optional The email of the customer. Example: hello@smarterlaunch.com

position   string   

The position of the customer. Example: Manager

new_password   string  optional  

optional The current password of the customer. Example: XXX

confirm_new_password   string  optional  

optional The confirmation of the new password of the customer. Example: XTXT

profile_photo_url   file  optional  

optional The image file. Example: /tmp/phpOieCbM

Patch

requires authentication

This endpoint allows users to patch their user info.

Example request:
curl --request PATCH \
    "https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"first_name\": \"John\",
    \"last_name\": \"Smith\",
    \"phone\": \"7897897894\",
    \"position\": \"Manager\",
    \"settings\": [
        \"est\"
    ],
    \"uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'first_name' => 'John',
            'last_name' => 'Smith',
            'phone' => '7897897894',
            'position' => 'Manager',
            'settings' => [
                'est',
            ],
            'uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "first_name": "John",
    "last_name": "Smith",
    "phone": "7897897894",
    "position": "Manager",
    "settings": [
        "est"
    ],
    "uuid": "3245d630-24fd-11ec-accd-e397aec85c7f"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/users/{user_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user_uuid   string  optional  

The UUID of the user. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

first_name   string  optional  

optional The first name of the user. Example: John

last_name   string  optional  

optional The last name of the user. Example: Smith

phone   string  optional  

optional The phone of the user. Example: 7897897894

position   string  optional  

optional The position of the user. Example: Manager

settings   string[]  optional  

optional The user settings.

dark_theme   boolean  optional  

optional The dark theme setting. Example: false

time_zone   object  optional  
integrations   string[]  optional  

optional The user integrations settings.

isn   string[]  optional  

optional The ISN integration settings.

wisetack   string[]  optional  

optional The Wisetack integration settings.

uuid   string   

The user uuid. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

Remove Profile pic.

requires authentication

This endpoint allows users to remove profile pictures with proper authorization.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/users/image" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/users/image';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/users/image"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/users/image

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user_uuid   string  optional  

The UUID of the user. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Remove Profile pic.

requires authentication

This endpoint allows users to remove profile pictures with proper authorization.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6/image" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6/image';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6/image"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/users/{user_uuid}/image

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user_uuid   string  optional  

The UUID of the user. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Delete

requires authentication

This end point allows user to delete the user-account.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/users/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "uuid": "3245d630-24fd-11ec-accd-e397aec85c7f"
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/v1/users/{user_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user_uuid   string  optional  

The UUID of the user. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6

Body Parameters

uuid   string   

The uuid of the user. Example: 3245d630-24fd-11ec-accd-e397aec85c7f

User Authentication

API for user authentication

Company Registration.

This endpoint lets company owner/manager to register.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/auth/register" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_name\": \"Smarter Launch\",
    \"first_name\": \"John\",
    \"last_name\": \"Smith\",
    \"email\": \"hello@smarterlaunch.com\",
    \"password\": \"$m@4T34L@un(}{\",
    \"confirm_password\": \"$m@4T34L@un(}{\",
    \"referral_source\": \"google ad\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/auth/register';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_name' => 'Smarter Launch',
            'first_name' => 'John',
            'last_name' => 'Smith',
            'email' => 'hello@smarterlaunch.com',
            'password' => '$m@4T34L@un(}{',
            'confirm_password' => '$m@4T34L@un(}{',
            'referral_source' => 'google ad',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/auth/register"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "company_name": "Smarter Launch",
    "first_name": "John",
    "last_name": "Smith",
    "email": "hello@smarterlaunch.com",
    "password": "$m@4T34L@un(}{",
    "confirm_password": "$m@4T34L@un(}{",
    "referral_source": "google ad"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/auth/register

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

company_name   string   

The company name of the user. Example: Smarter Launch

first_name   string   

The first name of the user. Example: John

last_name   string   

The last name of the user. Example: Smith

email   string   

The email of the user. Example: hello@smarterlaunch.com

password   string   

The password of the user. Example: $m@4T34L@un(}{

confirm_password   string   

The same password for confirmation. Example: $m@4T34L@un(}{

referral_source   string  optional  

optional The referral source. Example: google ad

Company registration using social account.

This endpoint lets company to register using social account.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/auth/register/social" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"social_type\": 1,
    \"code\": \"111806022046983237516\",
    \"referral_source\": \"google ad\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/auth/register/social';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'social_type' => 1,
            'code' => '111806022046983237516',
            'referral_source' => 'google ad',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/auth/register/social"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "social_type": 1,
    "code": "111806022046983237516",
    "referral_source": "google ad"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/auth/register/social

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

social_type   integer   

The login type of the user (Google = 1). Example: 1

code   string   

auth code of the user. Example: 111806022046983237516

referral_source   string  optional  

optional The referral source. Example: google ad

User registration based on company invite.

This endpoint lets you user to register himself who are invited by company.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/auth/register/company-user" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"first_name\": \"John\",
    \"last_name\": \"Smith\",
    \"email\": \"hello@smarterlaunch.com\",
    \"password\": \"$m@4T34L@un(}{\",
    \"confirm_password\": \"$m@4T34L@un(}{\",
    \"token\": \"7hKxKlz5sKHlqXFkkCfsKpj9iVPoaSlM18Uv5JuehYXQfTme33XtxGmNQ1yE\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/auth/register/company-user';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'first_name' => 'John',
            'last_name' => 'Smith',
            'email' => 'hello@smarterlaunch.com',
            'password' => '$m@4T34L@un(}{',
            'confirm_password' => '$m@4T34L@un(}{',
            'token' => '7hKxKlz5sKHlqXFkkCfsKpj9iVPoaSlM18Uv5JuehYXQfTme33XtxGmNQ1yE',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/auth/register/company-user"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "first_name": "John",
    "last_name": "Smith",
    "email": "hello@smarterlaunch.com",
    "password": "$m@4T34L@un(}{",
    "confirm_password": "$m@4T34L@un(}{",
    "token": "7hKxKlz5sKHlqXFkkCfsKpj9iVPoaSlM18Uv5JuehYXQfTme33XtxGmNQ1yE"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/auth/register/company-user

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

first_name   string   

The first name of the user. Example: John

last_name   string   

The last name of the user. Example: Smith

email   string   

The email of the user. Example: hello@smarterlaunch.com

password   string   

The password of the user. Example: $m@4T34L@un(}{

confirm_password   string   

The same password for confirmation. Example: $m@4T34L@un(}{

token   string   

To restrict unauthorized registration. Example: 7hKxKlz5sKHlqXFkkCfsKpj9iVPoaSlM18Uv5JuehYXQfTme33XtxGmNQ1yE

User registration using social account based on company invite.

This endpoint lets user to register using social account.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/auth/register/social/company-user" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"hello@smarterlaunch.com\",
    \"social_type\": 1,
    \"social_id\": \"111806022046983237516\",
    \"social_token_id\": \"eyRhbGciOiJSUzI1NiIsImtpZCI6Ijg1ODI4YzU5Jjg0YTY5YjU0YjI3NDgzZTQ4N2MzYmQ0NmNkMmEyYjMiLCJ0eXAiOiJKV1QifB\",
    \"token\": \"7hKxKlz5sKHlqXFkkCfsKpj9iVPoaSlM18Uv5JuehYXQfTme33XtxGmNQ1yE\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/auth/register/social/company-user';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'email' => 'hello@smarterlaunch.com',
            'social_type' => 1,
            'social_id' => '111806022046983237516',
            'social_token_id' => 'eyRhbGciOiJSUzI1NiIsImtpZCI6Ijg1ODI4YzU5Jjg0YTY5YjU0YjI3NDgzZTQ4N2MzYmQ0NmNkMmEyYjMiLCJ0eXAiOiJKV1QifB',
            'token' => '7hKxKlz5sKHlqXFkkCfsKpj9iVPoaSlM18Uv5JuehYXQfTme33XtxGmNQ1yE',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/auth/register/social/company-user"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "hello@smarterlaunch.com",
    "social_type": 1,
    "social_id": "111806022046983237516",
    "social_token_id": "eyRhbGciOiJSUzI1NiIsImtpZCI6Ijg1ODI4YzU5Jjg0YTY5YjU0YjI3NDgzZTQ4N2MzYmQ0NmNkMmEyYjMiLCJ0eXAiOiJKV1QifB",
    "token": "7hKxKlz5sKHlqXFkkCfsKpj9iVPoaSlM18Uv5JuehYXQfTme33XtxGmNQ1yE"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/auth/register/social/company-user

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

email   string   

The email of the user. Example: hello@smarterlaunch.com

social_type   integer   

The login type of the user (Google = 1). Example: 1

social_id   string   

The social id of the user provided by the 3rd party provider. Example: 111806022046983237516

social_token_id   string   

The social id of the user. Example: eyRhbGciOiJSUzI1NiIsImtpZCI6Ijg1ODI4YzU5Jjg0YTY5YjU0YjI3NDgzZTQ4N2MzYmQ0NmNkMmEyYjMiLCJ0eXAiOiJKV1QifB

token   string   

To restrict unauthorized registration. Example: 7hKxKlz5sKHlqXFkkCfsKpj9iVPoaSlM18Uv5JuehYXQfTme33XtxGmNQ1yE

Login.

This endpoint allows common login into the system.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/auth/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"hello@smarterlaunch.com\",
    \"password\": \"xxxxxx\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/auth/login';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'email' => 'hello@smarterlaunch.com',
            'password' => 'xxxxxx',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/auth/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "hello@smarterlaunch.com",
    "password": "xxxxxx"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/auth/login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

email   string   

The email-id of the user. Example: hello@smarterlaunch.com

password   string   

The password of the user. Example: xxxxxx

Social Login.

This endpoint lets you login into the system using a 3rd party provider.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/auth/login/social" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"social_type\": 1,
    \"code\": \"111806022046983237516\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/auth/login/social';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'social_type' => 1,
            'code' => '111806022046983237516',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/auth/login/social"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "social_type": 1,
    "code": "111806022046983237516"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/auth/login/social

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

social_type   integer   

The login type of the user (Google = 1). Example: 1

code   string   

auth code of the user. Example: 111806022046983237516

Forgot password.

This endpoint lets user to get token to change password.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/auth/forgot-password" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"hello@smarterlaunch.com\",
    \"token\": \"officiis\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/auth/forgot-password';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'email' => 'hello@smarterlaunch.com',
            'token' => 'officiis',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/auth/forgot-password"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "hello@smarterlaunch.com",
    "token": "officiis"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/auth/forgot-password

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

email   string   

The email of the user. Example: hello@smarterlaunch.com

token   string  optional  

This field is required when email is not present. Example: officiis

Validate Bearer token.

This endpoint lets user to validate token, on success returns token object.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/auth/token-validate" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"bearer_token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9...\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/auth/token-validate';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'bearer_token' => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9...',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/auth/token-validate"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "bearer_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9..."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/auth/token-validate

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

bearer_token   string  optional  

required. Example: eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9...

Get Token Expiration This endpoint allows client to retrieve their user token expiration date.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/auth/token-expiration" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"hello@smarterlaunch.com\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/auth/token-expiration';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'email' => 'hello@smarterlaunch.com',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/auth/token-expiration"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "hello@smarterlaunch.com"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/auth/token-expiration

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

email   string   

The email of the user. Example: hello@smarterlaunch.com

Verify email.

This endpoint lets the user verify their email and login with token and password.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/auth/verify-email" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"hello@smarterlaunch.com\",
    \"password\": \"$m@4T34L@un(}{\",
    \"token\": \"123456\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/auth/verify-email';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'email' => 'hello@smarterlaunch.com',
            'password' => '$m@4T34L@un(}{',
            'token' => '123456',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/auth/verify-email"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "hello@smarterlaunch.com",
    "password": "$m@4T34L@un(}{",
    "token": "123456"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/auth/verify-email

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

email   string   

The email of the user. Example: hello@smarterlaunch.com

password   string   

The password of the user. Example: $m@4T34L@un(}{

token   string   

To restrict unauthorized registration. Example: 123456

Resend the email verification notification.

requires authentication

This endpoint lets user to resend email verification notification.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/auth/verify-email-resend" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/auth/verify-email-resend';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/auth/verify-email-resend"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/auth/verify-email-resend

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Reset password.

requires authentication

This endpoint lets the user reset their password.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/auth/reset-password" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"password\": \"$m@4T34L@un(}{\",
    \"confirm_password\": \"$m@4T34L@un(}{\",
    \"token\": \"7hKxKlz5sKHlqXFkkCfsKpj9iVPoaSlM18Uv5JuehYXQfTme33XtxGmNQ1yE\",
    \"email\": \"hello@smarterlaunch.com\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/auth/reset-password';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'password' => '$m@4T34L@un(}{',
            'confirm_password' => '$m@4T34L@un(}{',
            'token' => '7hKxKlz5sKHlqXFkkCfsKpj9iVPoaSlM18Uv5JuehYXQfTme33XtxGmNQ1yE',
            'email' => 'hello@smarterlaunch.com',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/auth/reset-password"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "password": "$m@4T34L@un(}{",
    "confirm_password": "$m@4T34L@un(}{",
    "token": "7hKxKlz5sKHlqXFkkCfsKpj9iVPoaSlM18Uv5JuehYXQfTme33XtxGmNQ1yE",
    "email": "hello@smarterlaunch.com"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/auth/reset-password

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

password   string   

The password of the user. Example: $m@4T34L@un(}{

confirm_password   string   

The same password for confirmation. Example: $m@4T34L@un(}{

token   string   

To restrict unauthorized registration. Example: 7hKxKlz5sKHlqXFkkCfsKpj9iVPoaSlM18Uv5JuehYXQfTme33XtxGmNQ1yE

email   string   

The email of the user. Example: hello@smarterlaunch.com

Check token validity.

requires authentication

This endpoint verifies the validity of a reset password token.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/auth/check-token-validity" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"token\": \"7hKxKlz5sKHlqXFkkCfsKpj9iVPoaSlM18Uv5JuehYXQfTme33XtxGmNQ1yE\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/auth/check-token-validity';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'token' => '7hKxKlz5sKHlqXFkkCfsKpj9iVPoaSlM18Uv5JuehYXQfTme33XtxGmNQ1yE',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/auth/check-token-validity"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "token": "7hKxKlz5sKHlqXFkkCfsKpj9iVPoaSlM18Uv5JuehYXQfTme33XtxGmNQ1yE"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/auth/check-token-validity

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

token   string   

The token to be verified. Example: 7hKxKlz5sKHlqXFkkCfsKpj9iVPoaSlM18Uv5JuehYXQfTme33XtxGmNQ1yE

Get invited user by token

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/auth/user-invite" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"token\": \"BMj4tHdI9jeRidv8O6emwqwepk34sl2tYrm1gakhDhqgOxdi7JO4BEkJG4yh\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/auth/user-invite';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'token' => 'BMj4tHdI9jeRidv8O6emwqwepk34sl2tYrm1gakhDhqgOxdi7JO4BEkJG4yh',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/auth/user-invite"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "token": "BMj4tHdI9jeRidv8O6emwqwepk34sl2tYrm1gakhDhqgOxdi7JO4BEkJG4yh"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

GET api/v1/auth/user-invite

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

token   string   

The token provided for the invited user. Example: BMj4tHdI9jeRidv8O6emwqwepk34sl2tYrm1gakhDhqgOxdi7JO4BEkJG4yh

Logout.

requires authentication

let's user to logout.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/auth/logout" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/auth/logout';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/auth/logout"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/auth/logout

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

User Device Management.

requires authentication

This endpoint lets user to add device information.

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/device-info/store" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"pushtoken\": \"xxxxx\",
    \"device_name\": \"iPhone 12\",
    \"device_id\": \"skdlfsk-sfs-dsfsdf-sdfs\",
    \"app_version\": \"v1\",
    \"os_version\": \"iOS 14.1\",
    \"time_zone\": \"NZ\",
    \"platform\": \"Apple\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/device-info/store';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'pushtoken' => 'xxxxx',
            'device_name' => 'iPhone 12',
            'device_id' => 'skdlfsk-sfs-dsfsdf-sdfs',
            'app_version' => 'v1',
            'os_version' => 'iOS 14.1',
            'time_zone' => 'NZ',
            'platform' => 'Apple',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/device-info/store"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "pushtoken": "xxxxx",
    "device_name": "iPhone 12",
    "device_id": "skdlfsk-sfs-dsfsdf-sdfs",
    "app_version": "v1",
    "os_version": "iOS 14.1",
    "time_zone": "NZ",
    "platform": "Apple"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/device-info/store

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

pushtoken   string   

The push-token. Example: xxxxx

device_name   string   

The device name of the device. Example: iPhone 12

device_id   string   

The device id of the device. Example: skdlfsk-sfs-dsfsdf-sdfs

app_version   string   

The app version of the device. Example: v1

os_version   string   

The os version of the device. Example: iOS 14.1

time_zone   string   

The time zone of the user. Example: NZ

platform   string   

The platform of the device. Example: Apple

Webhooks

Configure webhook subscriptions to receive real-time HTTP notifications when events occur in Smarter Launch (proposals accepted, documents created, customers added, etc.).

Test

requires authentication

Save new webhook subscription

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/auth/webhooks/subscribe-test" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"url\": \"\'http:\\/\\/zapier.com\\/customer-created-in-smarterlaunch\'\",
    \"event\": \"customer-create\'\",
    \"type\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/auth/webhooks/subscribe-test';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'url' => '\'http://zapier.com/customer-created-in-smarterlaunch\'',
            'event' => 'customer-create\'',
            'type' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/auth/webhooks/subscribe-test"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "url": "'http:\/\/zapier.com\/customer-created-in-smarterlaunch'",
    "event": "customer-create'",
    "type": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/auth/webhooks/subscribe-test

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

url   string   

The url where smarterlaunch submit data when particular events are triggered. Example: 'http://zapier.com/customer-created-in-smarterlaunch'

event   string   

To determine what kind of trigger the webhook is for. Example: customer-create'

type   boolean   

Check To determine what integration the incoming webhook is for. Example: true

List

requires authentication

Shows the list of webhooks.

Example request:
curl --request GET \
    --get "https://staging.api.smarterlaunch.com/api/v1/webhooks/subscribe?page=12&page_size=17&sort_by=quasi&sort_order=enim&search=numquam" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/webhooks/subscribe';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '12',
            'page_size' => '17',
            'sort_by' => 'quasi',
            'sort_order' => 'enim',
            'search' => 'numquam',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/webhooks/subscribe"
);

const params = {
    "page": "12",
    "page_size": "17",
    "sort_by": "quasi",
    "sort_order": "enim",
    "search": "numquam",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/webhooks/subscribe

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

page   integer  optional  

optional The page number. Example: 12

page_size   integer  optional  

optional The number of record you want per page. Example: 17

sort_by   string  optional  

optional The column name. Example: quasi

sort_order   string  optional  

optional The order in which you want your records. Example: enim

search   string  optional  

optional The general search, it will find matching string. Example: numquam

Store

requires authentication

Save new webhook subscription

Example request:
curl --request POST \
    "https://staging.api.smarterlaunch.com/api/v1/webhooks/subscribe" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"url\": \"\'http:\\/\\/zapier.com\\/customer-created-in-smarterlaunch\'\",
    \"event\": \"customer-create\'\",
    \"type\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/webhooks/subscribe';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'url' => '\'http://zapier.com/customer-created-in-smarterlaunch\'',
            'event' => 'customer-create\'',
            'type' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/webhooks/subscribe"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "url": "'http:\/\/zapier.com\/customer-created-in-smarterlaunch'",
    "event": "customer-create'",
    "type": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/webhooks/subscribe

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

url   string   

The url where smarterlaunch submit data when particular events are triggered. Example: 'http://zapier.com/customer-created-in-smarterlaunch'

event   string   

To determine what kind of trigger the webhook is for. Example: customer-create'

type   boolean   

Check To determine what integration the incoming webhook is for. Example: true

Delete

requires authentication

Delete a webhook.

Example request:
curl --request DELETE \
    "https://staging.api.smarterlaunch.com/api/v1/webhooks/subscribe/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://staging.api.smarterlaunch.com/api/v1/webhooks/subscribe/3fa85f64-5717-4562-b3fc-2c963f66afa6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://staging.api.smarterlaunch.com/api/v1/webhooks/subscribe/3fa85f64-5717-4562-b3fc-2c963f66afa6"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/webhooks/subscribe/{webhook_uuid}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

webhook_uuid   string  optional  

The UUID of the webhook. Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6