Introduction
API documentation for developers
This documentation aims to provide all the information you need to work with the Smarter Launch API.
Authenticating requests
To authenticate requests, include an Authorization
header with the value "Bearer {YOUR_AUTH_KEY}"
.
All authenticated endpoints are marked with a requires authentication
badge in the documentation below.
Our API is currently not available for external access outside of the Smarter Launch application.
Service Plan
API for Service Plans
List
requires authentication
Shows the list of Service Plans with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/service-plans" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/service-plans';
$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://api.smarterlaunch.com/api/v1/service-plans"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get
requires authentication
Shows the specified Service Plan.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/service-plans/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/service-plans/2';
$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://api.smarterlaunch.com/api/v1/service-plans/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create
requires authentication
Store a newly created Service Plan.
Example request:
curl --request POST \
"https://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\": \"velit\",
\"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\": 40627145.094362
}"
$client = new \GuzzleHttp\Client();
$url = 'https://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' => 'velit',
'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' => 40627145.094362,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://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": "velit",
"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": 40627145.094362
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Duplicate
requires authentication
This endpoint lets user to duplicate service plan and set into a draft mode
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/service-plans/2/duplicate" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/service-plans/2/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://api.smarterlaunch.com/api/v1/service-plans/2/duplicate"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Perform a full field update for the specified Service Plan.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/service-plans/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Premium Service Plan\",
\"display_name\": \"id\",
\"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\": 44269243.1116561,
\"save_as\": \"SERVICE_PLAN_ACTIVE\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/service-plans/2';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'Premium Service Plan',
'display_name' => 'id',
'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' => 44269243.1116561,
'save_as' => 'SERVICE_PLAN_ACTIVE',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/service-plans/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Premium Service Plan",
"display_name": "id",
"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": 44269243.1116561,
"save_as": "SERVICE_PLAN_ACTIVE"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Perform a patch for the specified Service Plan.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/service-plans/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Premium Service Plan\",
\"display_name\": \"veniam\",
\"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\": 73296.11721782,
\"save_as\": \"SERVICE_PLAN_ARCHIVED\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/service-plans/2';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'Premium Service Plan',
'display_name' => 'veniam',
'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' => 73296.11721782,
'save_as' => 'SERVICE_PLAN_ARCHIVED',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/service-plans/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Premium Service Plan",
"display_name": "veniam",
"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": 73296.11721782,
"save_as": "SERVICE_PLAN_ARCHIVED"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Save as Draft
requires authentication
Save as Draft the specified Service Plan.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/service-plans/2/draft" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/service-plans/2/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://api.smarterlaunch.com/api/v1/service-plans/2/draft"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Publish
requires authentication
Publish the specified Service Plan.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/service-plans/2/publish" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/service-plans/2/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://api.smarterlaunch.com/api/v1/service-plans/2/publish"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Archived
requires authentication
Archived the specified Service Plan.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/service-plans/2/archive" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/service-plans/2/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://api.smarterlaunch.com/api/v1/service-plans/2/archive"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Unarchived
requires authentication
Unarchived the specified Service Plan.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/service-plans/2/unarchive" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/service-plans/2/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://api.smarterlaunch.com/api/v1/service-plans/2/unarchive"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Remove the specified Service Plan.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/service-plans/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/service-plans/2';
$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://api.smarterlaunch.com/api/v1/service-plans/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Decline Reason
API for Decline Reason
List
requires authentication
Shows the list of decline reasons with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/decline-reasons" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/decline-reasons';
$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://api.smarterlaunch.com/api/v1/companies/1/decline-reasons"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single decline reason.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/decline-reasons/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/decline-reasons/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://api.smarterlaunch.com/api/v1/companies/1/decline-reasons/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a newly created decline reasons.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/decline-reasons" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"voluptas\",
\"description\": \"Lorem, ipsum dolor sit amet consectetur adipisicing elit.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/decline-reasons';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'voluptas',
'description' => 'Lorem, ipsum dolor sit amet consectetur adipisicing elit.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/decline-reasons"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "voluptas",
"description": "Lorem, ipsum dolor sit amet consectetur adipisicing elit."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a decline reason.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/decline-reasons/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"eos\",
\"description\": \"Lorem, ipsum dolor sit amet consectetur adipisicing elit.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/decline-reasons/1';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'eos',
'description' => 'Lorem, ipsum dolor sit amet consectetur adipisicing elit.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/decline-reasons/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "eos",
"description": "Lorem, ipsum dolor sit amet consectetur adipisicing elit."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a company decline reason.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/decline-reasons/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"expedita\",
\"description\": \"Lorem, ipsum dolor sit amet consectetur adipisicing elit.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/decline-reasons/1';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'expedita',
'description' => 'Lorem, ipsum dolor sit amet consectetur adipisicing elit.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/decline-reasons/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "expedita",
"description": "Lorem, ipsum dolor sit amet consectetur adipisicing elit."
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a decline reason.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/decline-reasons/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/decline-reasons/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://api.smarterlaunch.com/api/v1/companies/1/decline-reasons/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Automation
API for Automation
List
requires authentication
Shows the list of Automations with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/automations" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/automations';
$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://api.smarterlaunch.com/api/v1/companies/1/automations"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create
requires authentication
Store a newly created Automation.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/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\": [
\"accusamus\"
],
\"filters\": [
\"minima\"
],
\"triggers\": [
\"doloremque\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/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' => [
'accusamus',
],
'filters' => [
'minima',
],
'triggers' => [
'doloremque',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/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": [
"accusamus"
],
"filters": [
"minima"
],
"triggers": [
"doloremque"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get
requires authentication
Display the specified Automation.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/automations/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/automations/3';
$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://api.smarterlaunch.com/api/v1/companies/1/automations/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Modify the specified Automation.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/automations/3" \
--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\": [
\"est\"
],
\"filters\": [
\"porro\"
],
\"triggers\": [
\"dicta\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/automations/3';
$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' => [
'est',
],
'filters' => [
'porro',
],
'triggers' => [
'dicta',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/automations/3"
);
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": [
"est"
],
"filters": [
"porro"
],
"triggers": [
"dicta"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Perform patches for the specified Automation.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/automations/3" \
--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\": [
\"quia\"
],
\"filters\": [
\"non\"
],
\"triggers\": [
\"enim\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/automations/3';
$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' => [
'quia',
],
'filters' => [
'non',
],
'triggers' => [
'enim',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/automations/3"
);
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": [
"quia"
],
"filters": [
"non"
],
"triggers": [
"enim"
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Remove the specified Automation.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/automations/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/automations/3';
$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://api.smarterlaunch.com/api/v1/companies/1/automations/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Heartbeat
API for Heartbeat
Lock
requires authentication
Lock a specific item of given the type for editing
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/heartbeat" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"\\\"Proposal\\\"\",
\"uuid\": \"\\\"f26834b1-b086-3c99-adc7-b1660383a3fd\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/heartbeat';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'type' => '"Proposal"',
'uuid' => '"f26834b1-b086-3c99-adc7-b1660383a3fd"',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/heartbeat"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "\"Proposal\"",
"uuid": "\"f26834b1-b086-3c99-adc7-b1660383a3fd\""
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Unlock
requires authentication
Unlock a specific item of given the type for editing
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/heartbeat" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"\\\"Proposal\\\"\",
\"uuid\": \"\\\"f26834b1-b086-3c99-adc7-b1660383a3fd\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/heartbeat';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'type' => '"Proposal"',
'uuid' => '"f26834b1-b086-3c99-adc7-b1660383a3fd"',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/heartbeat"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "\"Proposal\"",
"uuid": "\"f26834b1-b086-3c99-adc7-b1660383a3fd\""
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Role
API for role details
List / Fetch
requires authentication
Shows the list of role or fetch single record using uuid.
Example request:
curl --request GET \
--get "https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List / Fetch
requires authentication
Shows the list of role or fetch single record using uuid.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/roles/1" \
--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://api.smarterlaunch.com/api/v1/roles/1';
$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://api.smarterlaunch.com/api/v1/roles/1"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create / Update role.
requires authentication
This endpoint lets user to create/update role.
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create / Update role.
requires authentication
This endpoint lets user to create/update role.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/roles/1" \
--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://api.smarterlaunch.com/api/v1/roles/1';
$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://api.smarterlaunch.com/api/v1/roles/1"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Example request:
curl --request DELETE \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Review
API for Review
List
requires authentication
Shows the list of review with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/reviews" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/reviews';
$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://api.smarterlaunch.com/api/v1/companies/1/reviews"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single review.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/reviews/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/reviews/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://api.smarterlaunch.com/api/v1/companies/1/reviews/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a newly created review.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/reviews" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=aspernatur"\
--form "message=recusandae"\
--form "rate=temporibus"\
--form "external_photo_url=https://www.lubowitz.com/architecto-tenetur-quia-repudiandae-iste-autem-exercitationem"\
--form "position=3"\
--form "company_location_uuid=e37e0d62-f6e4-37b0-9bf6-d6e68be1f4bc"\
--form "photo=@/tmp/php4yGCdh"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/reviews';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'aspernatur'
],
[
'name' => 'message',
'contents' => 'recusandae'
],
[
'name' => 'rate',
'contents' => 'temporibus'
],
[
'name' => 'external_photo_url',
'contents' => 'https://www.lubowitz.com/architecto-tenetur-quia-repudiandae-iste-autem-exercitationem'
],
[
'name' => 'position',
'contents' => '3'
],
[
'name' => 'company_location_uuid',
'contents' => 'e37e0d62-f6e4-37b0-9bf6-d6e68be1f4bc'
],
[
'name' => 'photo',
'contents' => fopen('/tmp/php4yGCdh', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/reviews"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'aspernatur');
body.append('message', 'recusandae');
body.append('rate', 'temporibus');
body.append('external_photo_url', 'https://www.lubowitz.com/architecto-tenetur-quia-repudiandae-iste-autem-exercitationem');
body.append('position', '3');
body.append('company_location_uuid', 'e37e0d62-f6e4-37b0-9bf6-d6e68be1f4bc');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a review.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/reviews/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=deleniti"\
--form "message=quod"\
--form "rate=vel"\
--form "external_photo_url=http://www.sanford.com/"\
--form "position=19"\
--form "company_location_uuid=17595cbd-0e6a-354a-b4d6-a2ea9ac55470"\
--form "photo=@/tmp/php1UoQHf"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/reviews/1';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'deleniti'
],
[
'name' => 'message',
'contents' => 'quod'
],
[
'name' => 'rate',
'contents' => 'vel'
],
[
'name' => 'external_photo_url',
'contents' => 'http://www.sanford.com/'
],
[
'name' => 'position',
'contents' => '19'
],
[
'name' => 'company_location_uuid',
'contents' => '17595cbd-0e6a-354a-b4d6-a2ea9ac55470'
],
[
'name' => 'photo',
'contents' => fopen('/tmp/php1UoQHf', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/reviews/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'deleniti');
body.append('message', 'quod');
body.append('rate', 'vel');
body.append('external_photo_url', 'http://www.sanford.com/');
body.append('position', '19');
body.append('company_location_uuid', '17595cbd-0e6a-354a-b4d6-a2ea9ac55470');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch Index
requires authentication
Performs specific updates for review ranking
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/reviews" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/reviews"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a company review.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/reviews/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"nisi\",
\"message\": \"consectetur\",
\"rate\": \"ut\",
\"external_photo_url\": \"http:\\/\\/www.heller.com\\/quasi-adipisci-ut-a-magnam\",
\"position\": 2,
\"company_location_uuid\": \"9a502f0e-cda2-3654-b3f6-a3955498cd4a\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/reviews/1';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'nisi',
'message' => 'consectetur',
'rate' => 'ut',
'external_photo_url' => 'http://www.heller.com/quasi-adipisci-ut-a-magnam',
'position' => 2,
'company_location_uuid' => '9a502f0e-cda2-3654-b3f6-a3955498cd4a',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/reviews/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "nisi",
"message": "consectetur",
"rate": "ut",
"external_photo_url": "http:\/\/www.heller.com\/quasi-adipisci-ut-a-magnam",
"position": 2,
"company_location_uuid": "9a502f0e-cda2-3654-b3f6-a3955498cd4a"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a review.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/reviews/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/reviews/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://api.smarterlaunch.com/api/v1/companies/1/reviews/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Form Field
API for Form field
List
requires authentication
Shows the list of form fields with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields';
$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://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single form field.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields/11c335f7-668d-3e3a-965c-323100a14e79" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields/11c335f7-668d-3e3a-965c-323100a14e79';
$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://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields/11c335f7-668d-3e3a-965c-323100a14e79"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a newly created formField.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"label\": \"eum\",
\"input_type\": \"ipsum\",
\"default_value\": \"error\",
\"is_required\": true,
\"is_conditional\": false,
\"has_help_guide\": true,
\"conditional_value\": \"ex\",
\"help_guide\": \"sunt\",
\"position\": 7
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'label' => 'eum',
'input_type' => 'ipsum',
'default_value' => 'error',
'is_required' => true,
'is_conditional' => false,
'has_help_guide' => true,
'conditional_value' => 'ex',
'help_guide' => 'sunt',
'position' => 7,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"label": "eum",
"input_type": "ipsum",
"default_value": "error",
"is_required": true,
"is_conditional": false,
"has_help_guide": true,
"conditional_value": "ex",
"help_guide": "sunt",
"position": 7
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a formfield.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields/925f33ce-f8e3-303b-9a6f-fe2375ed0f15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"label\": \"facere\",
\"input_type\": \"ipsum\",
\"default_value\": \"et\",
\"is_required\": false,
\"is_conditional\": false,
\"has_help_guide\": false,
\"conditional_value\": \"cumque\",
\"help_guide\": \"enim\",
\"position\": 14
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields/925f33ce-f8e3-303b-9a6f-fe2375ed0f15';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'label' => 'facere',
'input_type' => 'ipsum',
'default_value' => 'et',
'is_required' => false,
'is_conditional' => false,
'has_help_guide' => false,
'conditional_value' => 'cumque',
'help_guide' => 'enim',
'position' => 14,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields/925f33ce-f8e3-303b-9a6f-fe2375ed0f15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"label": "facere",
"input_type": "ipsum",
"default_value": "et",
"is_required": false,
"is_conditional": false,
"has_help_guide": false,
"conditional_value": "cumque",
"help_guide": "enim",
"position": 14
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a formfield.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields/0aaf3ff4-779a-3bac-91cc-feaa9605f703" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"label\": \"sit\",
\"input_type\": \"consequatur\",
\"default_value\": \"ab\",
\"is_required\": false,
\"is_conditional\": true,
\"has_help_guide\": true,
\"conditional_value\": \"dolor\",
\"help_guide\": \"soluta\",
\"position\": 20
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields/0aaf3ff4-779a-3bac-91cc-feaa9605f703';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'label' => 'sit',
'input_type' => 'consequatur',
'default_value' => 'ab',
'is_required' => false,
'is_conditional' => true,
'has_help_guide' => true,
'conditional_value' => 'dolor',
'help_guide' => 'soluta',
'position' => 20,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields/0aaf3ff4-779a-3bac-91cc-feaa9605f703"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"label": "sit",
"input_type": "consequatur",
"default_value": "ab",
"is_required": false,
"is_conditional": true,
"has_help_guide": true,
"conditional_value": "dolor",
"help_guide": "soluta",
"position": 20
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a company form field.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields/5ec16258-08c7-38d7-99d5-7d463f46121a" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"label\": \"ea\",
\"input_type\": \"nobis\",
\"default_value\": \"ducimus\",
\"is_required\": false,
\"is_conditional\": false,
\"has_help_guide\": false,
\"conditional_value\": \"doloribus\",
\"help_guide\": \"quod\",
\"position\": 1
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields/5ec16258-08c7-38d7-99d5-7d463f46121a';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'label' => 'ea',
'input_type' => 'nobis',
'default_value' => 'ducimus',
'is_required' => false,
'is_conditional' => false,
'has_help_guide' => false,
'conditional_value' => 'doloribus',
'help_guide' => 'quod',
'position' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields/5ec16258-08c7-38d7-99d5-7d463f46121a"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"label": "ea",
"input_type": "nobis",
"default_value": "ducimus",
"is_required": false,
"is_conditional": false,
"has_help_guide": false,
"conditional_value": "doloribus",
"help_guide": "quod",
"position": 1
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a form field.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields/5d902e0d-143d-3410-848f-2f9a986fd96d" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields/5d902e0d-143d-3410-848f-2f9a986fd96d';
$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://api.smarterlaunch.com/api/v1/companies/1/forms/2/fields/5d902e0d-143d-3410-848f-2f9a986fd96d"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
App Data
API for app data such as: countries, states, roles, statuses, etc.
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://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Customer Contacts
API for customer contacts
Update
requires authentication
Update customer contacts
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/customers/3245d634-24fd-11ec-accd-e397aec85c7f/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://api.smarterlaunch.com/api/v1/customers/3245d634-24fd-11ec-accd-e397aec85c7f/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://api.smarterlaunch.com/api/v1/customers/3245d634-24fd-11ec-accd-e397aec85c7f/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Service Plan Custom Field
API for Service Plan Custom Field
List
requires authentication
Shows the list of Service Plan Custom Fields with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields';
$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://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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://api.smarterlaunch.com/api/v1/service-plans/2/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://api.smarterlaunch.com/api/v1/service-plans/2/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://api.smarterlaunch.com/api/v1/service-plans/2/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"custom_fields\": \"uicesjtlxavaknfrktqxnh\",
\"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://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'custom_fields' => 'uicesjtlxavaknfrktqxnh',
'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://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"custom_fields": "uicesjtlxavaknfrktqxnh",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get
requires authentication
Display the specified Service Plan Custom Field.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields/799fd6c8-df8f-3207-bf6b-c3b6fb3d81d0" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields/799fd6c8-df8f-3207-bf6b-c3b6fb3d81d0';
$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://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields/799fd6c8-df8f-3207-bf6b-c3b6fb3d81d0"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields/15cfe951-17d2-3e3d-891b-e8d00ebf1dec" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"custom_fields\": \"ity\",
\"save_service_plan_as\": \"SERVICE_PLAN_ARCHIVED\",
\"label\": \"First Name\",
\"input_type\": \"TEXT\",
\"default_value\": \"\\\"\\\"\",
\"combine_input_value_collection\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields/15cfe951-17d2-3e3d-891b-e8d00ebf1dec';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'custom_fields' => 'ity',
'save_service_plan_as' => 'SERVICE_PLAN_ARCHIVED',
'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://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields/15cfe951-17d2-3e3d-891b-e8d00ebf1dec"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"custom_fields": "ity",
"save_service_plan_as": "SERVICE_PLAN_ARCHIVED",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Perform patches for the specified Service Plan Custom Field.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields/3f96fbe1-8a56-3e8a-bae7-e66dc60519df" \
--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://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields/3f96fbe1-8a56-3e8a-bae7-e66dc60519df';
$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://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields/3f96fbe1-8a56-3e8a-bae7-e66dc60519df"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Remove the specified Service Plan Custom Field.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields/8d8d910e-594c-328c-8378-2819717363ca" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields/8d8d910e-594c-328c-8378-2819717363ca';
$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://api.smarterlaunch.com/api/v1/service-plans/2/custom-fields/8d8d910e-594c-328c-8378-2819717363ca"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Media Tag
API for Media Tag
List
requires authentication
Shows the list of media tag with pagination.
Show
requires authentication
Show a single media tag
Store
requires authentication
Upload a media tag
Update
requires authentication
Update a media tag.
Patch
requires authentication
Patch a media tag.
Delete
requires authentication
Delete a media tag.
Property Locations
API for Property Locations
List
requires authentication
Shows the list of property locations with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/property-locations" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/property-locations';
$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://api.smarterlaunch.com/api/v1/companies/1/property-locations"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single property location.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/property-locations/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/property-locations/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://api.smarterlaunch.com/api/v1/companies/1/property-locations/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a newly created property location.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/property-locations" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"doloremque\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/property-locations';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'doloremque',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/property-locations"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "doloremque"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a property location.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/property-locations/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"modi\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/property-locations/1';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'modi',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/property-locations/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "modi"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a company property location.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/property-locations/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"tenetur\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/property-locations/1';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'tenetur',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/property-locations/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "tenetur"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a property location.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/property-locations/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/property-locations/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://api.smarterlaunch.com/api/v1/companies/1/property-locations/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
State
API for state details
List / Fetch
Shows the list of state or fetch single record using uuid.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/countries/b135d322-64be-37d1-a619-7268c53568fd/states/4b4e8ad5-ca57-3b81-9a87-a361e97f41b7" \
--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://api.smarterlaunch.com/api/v1/countries/b135d322-64be-37d1-a619-7268c53568fd/states/4b4e8ad5-ca57-3b81-9a87-a361e97f41b7';
$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://api.smarterlaunch.com/api/v1/countries/b135d322-64be-37d1-a619-7268c53568fd/states/4b4e8ad5-ca57-3b81-9a87-a361e97f41b7"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Company Tax
API for Company Tax
List
requires authentication
Shows the list of taxes with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/taxes" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/taxes';
$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://api.smarterlaunch.com/api/v1/companies/1/taxes"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch Index
requires authentication
Performs specific updates for tax settings
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/taxes" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/taxes"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single tax.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/taxes/16137160-070b-3e29-9a71-4ca35284bcdd" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/taxes/16137160-070b-3e29-9a71-4ca35284bcdd';
$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://api.smarterlaunch.com/api/v1/companies/1/taxes/16137160-070b-3e29-9a71-4ca35284bcdd"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a newly created tax.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/taxes" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"country_uuid\": \"a7eda44d-032e-39ca-b03a-3a66476416a0\",
\"country_state_uuids\": [
\"ut\"
],
\"name\": \"est\",
\"postal_codes\": 85410,
\"cities\": \"Queen Creek\",
\"rate\": \"12.0000\",
\"is_compound\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/taxes';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'country_uuid' => 'a7eda44d-032e-39ca-b03a-3a66476416a0',
'country_state_uuids' => [
'ut',
],
'name' => 'est',
'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://api.smarterlaunch.com/api/v1/companies/1/taxes"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"country_uuid": "a7eda44d-032e-39ca-b03a-3a66476416a0",
"country_state_uuids": [
"ut"
],
"name": "est",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a tax.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/taxes/3c73e13a-68f3-348f-994c-34454fc0abe4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"country_uuid\": \"a7734857-c963-3596-9325-11ebe1575303\",
\"country_state_uuids\": [
\"fugiat\"
],
\"name\": \"vero\",
\"postal_codes\": \"85410\",
\"cities\": \"Queen Creek\",
\"rate\": \"12.0000\",
\"is_compound\": true,
\"rank\": 1
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/taxes/3c73e13a-68f3-348f-994c-34454fc0abe4';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'country_uuid' => 'a7734857-c963-3596-9325-11ebe1575303',
'country_state_uuids' => [
'fugiat',
],
'name' => 'vero',
'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://api.smarterlaunch.com/api/v1/companies/1/taxes/3c73e13a-68f3-348f-994c-34454fc0abe4"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"country_uuid": "a7734857-c963-3596-9325-11ebe1575303",
"country_state_uuids": [
"fugiat"
],
"name": "vero",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a tax.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/taxes/99091ab0-d37a-32dd-a887-44871c3135d9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"country_uuid\": \"53ea8eea-1f4d-3047-91a7-c45bbcfe6387\",
\"country_state_uuids\": [
\"incidunt\"
],
\"name\": \"accusamus\",
\"postal_codes\": \"85410\",
\"cities\": \"Queen Creek\",
\"rate\": \"12.0000\",
\"is_compound\": true,
\"rank\": 1
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/taxes/99091ab0-d37a-32dd-a887-44871c3135d9';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'country_uuid' => '53ea8eea-1f4d-3047-91a7-c45bbcfe6387',
'country_state_uuids' => [
'incidunt',
],
'name' => 'accusamus',
'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://api.smarterlaunch.com/api/v1/companies/1/taxes/99091ab0-d37a-32dd-a887-44871c3135d9"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"country_uuid": "53ea8eea-1f4d-3047-91a7-c45bbcfe6387",
"country_state_uuids": [
"incidunt"
],
"name": "accusamus",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a tax.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/taxes/e485f5d3-11cf-31f8-8c17-1971fc5e2a4c" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/taxes/e485f5d3-11cf-31f8-8c17-1971fc5e2a4c';
$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://api.smarterlaunch.com/api/v1/companies/1/taxes/e485f5d3-11cf-31f8-8c17-1971fc5e2a4c"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Company Location
API for company locations
List
requires authentication
Shows the list of locations with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/locations" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/locations';
$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://api.smarterlaunch.com/api/v1/companies/1/locations"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Shows the detail of a specific company location.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/locations/4d6982f3-003a-3655-a27d-d51ea350fc44" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"withTemplates\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/locations/4d6982f3-003a-3655-a27d-d51ea350fc44';
$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://api.smarterlaunch.com/api/v1/companies/1/locations/4d6982f3-003a-3655-a27d-d51ea350fc44"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create
requires authentication
This endpoint lets user to create single record using uuid.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update All
requires authentication
This endpoint lets user to update multiple record using uuids.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/locations/updateAll" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Edit
requires authentication
This endpoint lets user to update single record using uuid (using PUT method).
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/locations/468aced4-7253-39d9-890f-1226f5a2bc8d" \
--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://api.smarterlaunch.com/api/v1/companies/1/locations/468aced4-7253-39d9-890f-1226f5a2bc8d';
$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://api.smarterlaunch.com/api/v1/companies/1/locations/468aced4-7253-39d9-890f-1226f5a2bc8d"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
This endpoint lets user to update single record using uuid.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/locations/fb16eae4-6216-3dab-9320-b3eec7c3355b" \
--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://api.smarterlaunch.com/api/v1/companies/1/locations/fb16eae4-6216-3dab-9320-b3eec7c3355b';
$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://api.smarterlaunch.com/api/v1/companies/1/locations/fb16eae4-6216-3dab-9320-b3eec7c3355b"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
This endpoint enables user to delete a company location
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/locations/8acc19eb-b8ea-3662-a8dd-d2fc45ae3460" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/locations/8acc19eb-b8ea-3662-a8dd-d2fc45ae3460';
$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://api.smarterlaunch.com/api/v1/companies/1/locations/8acc19eb-b8ea-3662-a8dd-d2fc45ae3460"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Integration Data
requires authentication
Get data from a 3rd party API
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/locations/24d3c4b2-cd2e-3e23-9428-348020f5d328/integration-data" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/locations/24d3c4b2-cd2e-3e23-9428-348020f5d328/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://api.smarterlaunch.com/api/v1/companies/1/locations/24d3c4b2-cd2e-3e23-9428-348020f5d328/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
User Authentication
API for user authentication
Company Registration.
This endpoint lets company owner/manager to register.
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Company registration using social account.
This endpoint lets company to register using social account.
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://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
User registration using social account based on company invite.
This endpoint lets user to register using social account.
Login.
This endpoint allows common login into the system.
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Social Login.
This endpoint lets you login into the system using a 3rd party provider.
Forgot password.
This endpoint lets user to get token to change password.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/auth/forgot-password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"hello@smarterlaunch.com\",
\"token\": \"perspiciatis\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://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' => 'perspiciatis',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/auth/forgot-password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "hello@smarterlaunch.com",
"token": "perspiciatis"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validate Bearer token.
This endpoint lets user to validate token, on success returns token object.
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Token Expiration This endpoint allows client to retrieve their user token expiration date.
Example request:
curl --request GET \
--get "https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Verify email.
This endpoint lets the user verify their email and login with token and password.
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Resend the email verification notification.
requires authentication
This endpoint lets user to resend email verification notification.
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reset password.
requires authentication
This endpoint lets the user reset their password.
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Check token validity.
requires authentication
This endpoint verifies the validity of a reset password token.
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get invited user by token
Example request:
curl --request GET \
--get "https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Logout.
requires authentication
let's user to logout.
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
User Device Management.
requires authentication
This endpoint lets user to add device information.
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Company Integration
API for Company Integration
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://api.smarterlaunch.com/api/v1/companies/1/integrations/fabf00b8-66a9-3440-9876-b38c4a41d95a/dolore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/integrations/fabf00b8-66a9-3440-9876-b38c4a41d95a/dolore';
$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://api.smarterlaunch.com/api/v1/companies/1/integrations/fabf00b8-66a9-3440-9876-b38c4a41d95a/dolore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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://api.smarterlaunch.com/api/v1/integration-types/1/eaque" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/integration-types/1/eaque';
$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://api.smarterlaunch.com/api/v1/integration-types/1/eaque"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List
requires authentication
Shows the list of integrations for a company
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/integrations" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/integrations"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Shows a single item of integrations for a company
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/integrations/b8c045cc-d0a8-3c78-ab87-191c3b496a6d" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/integrations/b8c045cc-d0a8-3c78-ab87-191c3b496a6d';
$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://api.smarterlaunch.com/api/v1/companies/1/integrations/b8c045cc-d0a8-3c78-ab87-191c3b496a6d"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Create a company integration with empty credential values
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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://api.smarterlaunch.com/api/v1/companies/1/integrations/898fbee6-dac1-3714-b58e-5b4f25d8d105" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"credentials\": [
\"aut\"
],
\"status_uuid\": \"5084fe7a-f07a-3589-af13-cf903d829e59\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/integrations/898fbee6-dac1-3714-b58e-5b4f25d8d105';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'credentials' => [
'aut',
],
'status_uuid' => '5084fe7a-f07a-3589-af13-cf903d829e59',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/integrations/898fbee6-dac1-3714-b58e-5b4f25d8d105"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"credentials": [
"aut"
],
"status_uuid": "5084fe7a-f07a-3589-af13-cf903d829e59"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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://api.smarterlaunch.com/api/v1/companies/1/integrations/690efbc9-88bd-35d0-a85c-1b421733713e" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"credentials\": [
\"sunt\"
],
\"status_uuid\": \"4015f2c7-2f84-382f-b67e-0005ae9940f1\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/integrations/690efbc9-88bd-35d0-a85c-1b421733713e';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'credentials' => [
'sunt',
],
'status_uuid' => '4015f2c7-2f84-382f-b67e-0005ae9940f1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/integrations/690efbc9-88bd-35d0-a85c-1b421733713e"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"credentials": [
"sunt"
],
"status_uuid": "4015f2c7-2f84-382f-b67e-0005ae9940f1"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
This endpoint allows user to delete a Company Integration.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/integrations/99f2527f-f5f5-3038-9158-db1620e4167d" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/integrations/99f2527f-f5f5-3038-9158-db1620e4167d';
$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://api.smarterlaunch.com/api/v1/companies/1/integrations/99f2527f-f5f5-3038-9158-db1620e4167d"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Company Symbol
API for company symbol details
List
requires authentication
Shows the list of company symbols with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/symbols" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/symbols';
$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://api.smarterlaunch.com/api/v1/companies/1/symbols"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single company symbol.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/symbols/12f913cf-dd04-39ea-8174-01f3790eb1a7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/symbols/12f913cf-dd04-39ea-8174-01f3790eb1a7';
$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://api.smarterlaunch.com/api/v1/companies/1/symbols/12f913cf-dd04-39ea-8174-01f3790eb1a7"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a newly created company symbol.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/symbols" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=necessitatibus"\
--form "source=ex"\
--form "description=Dolorem incidunt alias delectus nisi minus eum omnis quibusdam."\
--form "icon_url=http://smarterlaunch.local/image1.jpg"\
--form "company_product_uuids[]=voluptas"\
--form "icon_file=@/tmp/phpxKjBlj"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/symbols';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'necessitatibus'
],
[
'name' => 'source',
'contents' => 'ex'
],
[
'name' => 'description',
'contents' => 'Dolorem incidunt alias delectus nisi minus eum omnis quibusdam.'
],
[
'name' => 'icon_url',
'contents' => 'http://smarterlaunch.local/image1.jpg'
],
[
'name' => 'company_product_uuids[]',
'contents' => 'voluptas'
],
[
'name' => 'icon_file',
'contents' => fopen('/tmp/phpxKjBlj', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/symbols"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'necessitatibus');
body.append('source', 'ex');
body.append('description', 'Dolorem incidunt alias delectus nisi minus eum omnis quibusdam.');
body.append('icon_url', 'http://smarterlaunch.local/image1.jpg');
body.append('company_product_uuids[]', 'voluptas');
body.append('icon_file', document.querySelector('input[name="icon_file"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a company symbol.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/symbols/bccaa247-3147-3619-ba4e-748f6f098f13" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=quo"\
--form "source=neque"\
--form "description=Mollitia asperiores tempora ea magni ut."\
--form "icon_url=http://smarterlaunch.local/image1.jpg"\
--form "company_product_uuids[]=illum"\
--form "icon_file=@/tmp/phpe7X2Rg"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/symbols/bccaa247-3147-3619-ba4e-748f6f098f13';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'quo'
],
[
'name' => 'source',
'contents' => 'neque'
],
[
'name' => 'description',
'contents' => 'Mollitia asperiores tempora ea magni ut.'
],
[
'name' => 'icon_url',
'contents' => 'http://smarterlaunch.local/image1.jpg'
],
[
'name' => 'company_product_uuids[]',
'contents' => 'illum'
],
[
'name' => 'icon_file',
'contents' => fopen('/tmp/phpe7X2Rg', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/symbols/bccaa247-3147-3619-ba4e-748f6f098f13"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'quo');
body.append('source', 'neque');
body.append('description', 'Mollitia asperiores tempora ea magni ut.');
body.append('icon_url', 'http://smarterlaunch.local/image1.jpg');
body.append('company_product_uuids[]', 'illum');
body.append('icon_file', document.querySelector('input[name="icon_file"]').files[0]);
fetch(url, {
method: "PUT",
headers,
body,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a company symbol.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/symbols/f7822a81-edb4-38de-9699-50c5c6ada010" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=nobis"\
--form "source=minima"\
--form "description=Qui alias neque dolor dolores similique."\
--form "icon_url=http://smarterlaunch.local/image1.jpg"\
--form "company_product_uuids[]=ut"\
--form "icon_file=@/tmp/phpe2VmTh"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/symbols/f7822a81-edb4-38de-9699-50c5c6ada010';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'nobis'
],
[
'name' => 'source',
'contents' => 'minima'
],
[
'name' => 'description',
'contents' => 'Qui alias neque dolor dolores similique.'
],
[
'name' => 'icon_url',
'contents' => 'http://smarterlaunch.local/image1.jpg'
],
[
'name' => 'company_product_uuids[]',
'contents' => 'ut'
],
[
'name' => 'icon_file',
'contents' => fopen('/tmp/phpe2VmTh', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/symbols/f7822a81-edb4-38de-9699-50c5c6ada010"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'nobis');
body.append('source', 'minima');
body.append('description', 'Qui alias neque dolor dolores similique.');
body.append('icon_url', 'http://smarterlaunch.local/image1.jpg');
body.append('company_product_uuids[]', 'ut');
body.append('icon_file', document.querySelector('input[name="icon_file"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a company symbol.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/symbols/469c7e20-1a42-3f4f-88c5-76a3213fe19f" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=inventore"\
--form "source=non"\
--form "description=Molestias aut quia aspernatur sed repellat quos recusandae."\
--form "icon_url=http://smarterlaunch.local/image1.jpg"\
--form "icon_file=@/tmp/phpx4c4og"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/symbols/469c7e20-1a42-3f4f-88c5-76a3213fe19f';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'inventore'
],
[
'name' => 'source',
'contents' => 'non'
],
[
'name' => 'description',
'contents' => 'Molestias aut quia aspernatur sed repellat quos recusandae.'
],
[
'name' => 'icon_url',
'contents' => 'http://smarterlaunch.local/image1.jpg'
],
[
'name' => 'icon_file',
'contents' => fopen('/tmp/phpx4c4og', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/symbols/469c7e20-1a42-3f4f-88c5-76a3213fe19f"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'inventore');
body.append('source', 'non');
body.append('description', 'Molestias aut quia aspernatur sed repellat quos recusandae.');
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a company symbol.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/symbols/d9d8787e-5b07-3dbe-811e-52ed9f23ecb6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/symbols/d9d8787e-5b07-3dbe-811e-52ed9f23ecb6';
$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://api.smarterlaunch.com/api/v1/companies/1/symbols/d9d8787e-5b07-3dbe-811e-52ed9f23ecb6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Support Request
API for Support Request
Store
requires authentication
Send support request from users
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Upload
requires authentication
Upload photos for Cover Letter or Photo Layout pages
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/support-request-upload/4a0f3e44-7a56-34a8-ab8e-ce813d72d8ef" \
--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/php2Y0lwi" \
--form "photo_file=@/tmp/phpkxCaKg"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/support-request-upload/4a0f3e44-7a56-34a8-ab8e-ce813d72d8ef';
$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/php2Y0lwi', 'r')
],
[
'name' => 'photo_file',
'contents' => fopen('/tmp/phpkxCaKg', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/support-request-upload/4a0f3e44-7a56-34a8-ab8e-ce813d72d8ef"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Pest Treated
List
requires authentication
Shows the list of pest treated with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/pests-treated" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single pest treated.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/pests-treated/1e488322-5ad2-33b3-9af4-bf9309d473c6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/pests-treated/1e488322-5ad2-33b3-9af4-bf9309d473c6';
$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://api.smarterlaunch.com/api/v1/companies/1/pests-treated/1e488322-5ad2-33b3-9af4-bf9309d473c6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a newly created pest treated.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/pests-treated" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=ea"\
--form "pest_treated_attributes[attr]=value"\
--form "icon_image_url=http://smarterlaunch.local/image1.jpg"\
--form "pest_treated="\
--form "photo_file=@/tmp/phpUM11li"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/pests-treated';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'ea'
],
[
'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/phpUM11li', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/pests-treated"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'ea');
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a pest treated.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/pests-treated/cf288824-ac7d-317f-8cea-b462b20c819b" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=fuga"\
--form "pest_treated_attributes[attr]=value"\
--form "icon_image_url=http://smarterlaunch.local/image1.jpg"\
--form "photo_file=@/tmp/phpe5dwbi"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/pests-treated/cf288824-ac7d-317f-8cea-b462b20c819b';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'fuga'
],
[
'name' => 'pest_treated_attributes[attr]',
'contents' => 'value'
],
[
'name' => 'icon_image_url',
'contents' => 'http://smarterlaunch.local/image1.jpg'
],
[
'name' => 'photo_file',
'contents' => fopen('/tmp/phpe5dwbi', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/pests-treated/cf288824-ac7d-317f-8cea-b462b20c819b"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'fuga');
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a pest treated.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/pests-treated/36c9b84c-f44b-3834-90c0-85bbbfca477d" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=minus"\
--form "pest_treated_attributes[attr]=value"\
--form "icon_image_url=http://smarterlaunch.local/image1.jpg"\
--form "photo_file=@/tmp/phpO71d6g"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/pests-treated/36c9b84c-f44b-3834-90c0-85bbbfca477d';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'minus'
],
[
'name' => 'pest_treated_attributes[attr]',
'contents' => 'value'
],
[
'name' => 'icon_image_url',
'contents' => 'http://smarterlaunch.local/image1.jpg'
],
[
'name' => 'photo_file',
'contents' => fopen('/tmp/phpO71d6g', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/pests-treated/36c9b84c-f44b-3834-90c0-85bbbfca477d"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'minus');
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a company pest treated.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/pests-treated/5471e896-0951-381d-b944-dd3968ec1131" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=sapiente"\
--form "pest_treated_attributes[attr]=value"\
--form "icon_image_url=http://smarterlaunch.local/image1.jpg"\
--form "photo_file=@/tmp/phpdbLtGf"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/pests-treated/5471e896-0951-381d-b944-dd3968ec1131';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'sapiente'
],
[
'name' => 'pest_treated_attributes[attr]',
'contents' => 'value'
],
[
'name' => 'icon_image_url',
'contents' => 'http://smarterlaunch.local/image1.jpg'
],
[
'name' => 'photo_file',
'contents' => fopen('/tmp/phpdbLtGf', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/pests-treated/5471e896-0951-381d-b944-dd3968ec1131"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'sapiente');
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a pest treated.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/pests-treated/4af41ff5-20a9-3b03-b3e1-8749ea05ef67" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/pests-treated/4af41ff5-20a9-3b03-b3e1-8749ea05ef67';
$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://api.smarterlaunch.com/api/v1/companies/1/pests-treated/4af41ff5-20a9-3b03-b3e1-8749ea05ef67"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Media Source
API for Media Source
List
requires authentication
Shows the list of media source with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/media-sources" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/media-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://api.smarterlaunch.com/api/v1/media-sources"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Favorite Media Source List
requires authentication
Get the list of favorite Media Sources
Example request:
curl --request GET \
--get "https://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\": \"animi\",
\"description\": \"Qui sunt assumenda sed.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://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' => 'animi',
'description' => 'Qui sunt assumenda sed.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://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": "animi",
"description": "Qui sunt assumenda sed."
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single media source
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/media-sources/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/media-sources/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://api.smarterlaunch.com/api/v1/media-sources/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Upload a media source
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/media-sources" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"error\",
\"description\": \"Asperiores voluptas minima itaque nulla ex nobis minus.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://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' => 'error',
'description' => 'Asperiores voluptas minima itaque nulla ex nobis minus.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/media-sources"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "error",
"description": "Asperiores voluptas minima itaque nulla ex nobis minus."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Add to Favorite
requires authentication
Add media source to the user company's media source favorites
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/media-sources/1/favorites" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"nihil\",
\"description\": \"Voluptatem ut omnis odit dolor culpa adipisci.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/media-sources/1/favorites';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'nihil',
'description' => 'Voluptatem ut omnis odit dolor culpa adipisci.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/media-sources/1/favorites"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "nihil",
"description": "Voluptatem ut omnis odit dolor culpa adipisci."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Import CSV
requires authentication
Accept CSV and populate media item data for a media source/manufacturer
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/media-sources/1/import-csv" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "file=@/tmp/phpo3DnUi"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/media-sources/1/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/phpo3DnUi', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/media-sources/1/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a media source.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/media-sources/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"exercitationem\",
\"description\": \"Illo amet ab nemo a ut.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/media-sources/1';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'exercitationem',
'description' => 'Illo amet ab nemo a ut.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/media-sources/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "exercitationem",
"description": "Illo amet ab nemo a ut."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a media source.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/media-sources/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"commodi\",
\"description\": \"Odio illo repellat nobis deserunt eveniet.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/media-sources/1';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'commodi',
'description' => 'Odio illo repellat nobis deserunt eveniet.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/media-sources/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "commodi",
"description": "Odio illo repellat nobis deserunt eveniet."
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a media source.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/media-sources/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/media-sources/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://api.smarterlaunch.com/api/v1/media-sources/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove Favorite Media Source
requires authentication
Remove media source to the user company's media source favorites
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/media-sources/1/favorites" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"numquam\",
\"description\": \"Qui rerum accusantium tenetur.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/media-sources/1/favorites';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'numquam',
'description' => 'Qui rerum accusantium tenetur.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/media-sources/1/favorites"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "numquam",
"description": "Qui rerum accusantium tenetur."
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Proposal Templates
List
requires authentication
Shows the list of ProposalTemplates with pagination.
Example request:
curl --request GET \
--get "https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a newly created Proposal Template.
Example request:
curl --request POST \
"https://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\": \"926aaf02-d54f-3309-8004-f16c694cfc40\",
\"title\": \"facere\",
\"description\": \"Possimus molestias asperiores consectetur enim.\",
\"settings\": {
\"attr\": \"value\"
},
\"service_plan_uuids\": [
\"815d3d9c-f371-3781-8456-7e6954b5b0f5\",
\"815d3d9c-f371-3781-8456-7e6954b5b0f5\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://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' => '926aaf02-d54f-3309-8004-f16c694cfc40',
'title' => 'facere',
'description' => 'Possimus molestias asperiores consectetur enim.',
'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://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": "926aaf02-d54f-3309-8004-f16c694cfc40",
"title": "facere",
"description": "Possimus molestias asperiores consectetur enim.",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Duplicate
requires authentication
Duplicate a proposal template
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/proposals/templates/d4360bcb-b90a-332f-9697-bad2892915db/duplicate" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/templates/d4360bcb-b90a-332f-9697-bad2892915db/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://api.smarterlaunch.com/api/v1/proposals/templates/d4360bcb-b90a-332f-9697-bad2892915db/duplicate"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single proposal template.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/proposals/templates/0c283521-61bb-3b89-8b77-9be58cb2fa4a" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/templates/0c283521-61bb-3b89-8b77-9be58cb2fa4a';
$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://api.smarterlaunch.com/api/v1/proposals/templates/0c283521-61bb-3b89-8b77-9be58cb2fa4a"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a proposal template.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/proposals/templates/a85c07ac-189f-3476-b880-c8f3e0e0d50f" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_location_uuid\": \"23122c1c-6390-313b-936d-f2f9965bd5a3\",
\"title\": \"omnis\",
\"description\": \"Iusto velit quod sed quas omnis pariatur.\",
\"settings\": {
\"attr\": \"value\"
},
\"service_plan_uuids\": [
\"815d3d9c-f371-3781-8456-7e6954b5b0f5\",
\"815d3d9c-f371-3781-8456-7e6954b5b0f5\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/templates/a85c07ac-189f-3476-b880-c8f3e0e0d50f';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'company_location_uuid' => '23122c1c-6390-313b-936d-f2f9965bd5a3',
'title' => 'omnis',
'description' => 'Iusto velit quod sed quas omnis pariatur.',
'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://api.smarterlaunch.com/api/v1/proposals/templates/a85c07ac-189f-3476-b880-c8f3e0e0d50f"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_location_uuid": "23122c1c-6390-313b-936d-f2f9965bd5a3",
"title": "omnis",
"description": "Iusto velit quod sed quas omnis pariatur.",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a company proposal template.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/proposals/templates/968f1c93-d947-3a35-bb3e-ad3ca1cb75ce" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_location_uuid\": \"ea32830d-f789-3c09-b8b5-e2ee145f03d5\",
\"title\": \"veritatis\",
\"description\": \"Voluptates aut doloremque itaque beatae maiores.\",
\"settings\": {
\"attr\": \"value\"
},
\"service_plan_uuids\": [
\"815d3d9c-f371-3781-8456-7e6954b5b0f5\",
\"815d3d9c-f371-3781-8456-7e6954b5b0f5\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/templates/968f1c93-d947-3a35-bb3e-ad3ca1cb75ce';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'company_location_uuid' => 'ea32830d-f789-3c09-b8b5-e2ee145f03d5',
'title' => 'veritatis',
'description' => 'Voluptates aut doloremque itaque beatae maiores.',
'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://api.smarterlaunch.com/api/v1/proposals/templates/968f1c93-d947-3a35-bb3e-ad3ca1cb75ce"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_location_uuid": "ea32830d-f789-3c09-b8b5-e2ee145f03d5",
"title": "veritatis",
"description": "Voluptates aut doloremque itaque beatae maiores.",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a proposal template.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/proposals/templates/654b82db-e75d-390a-8173-fc91c964f663" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/templates/654b82db-e75d-390a-8173-fc91c964f663';
$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://api.smarterlaunch.com/api/v1/proposals/templates/654b82db-e75d-390a-8173-fc91c964f663"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Media Item
API for Media Item
List
requires authentication
Shows the list of media items with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/media-items" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_uuid\": \"1dba5598-94ed-38fe-bb5b-a1dad22b11c3\",
\"company_location_uuid\": \"3929469b-a863-3af6-82e1-75f906f792b5\",
\"media_source_uuid\": \"a8c29fdb-7413-3f89-9743-3fa68124e5c2\",
\"include_global_files\": false
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/media-items';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'company_uuid' => '1dba5598-94ed-38fe-bb5b-a1dad22b11c3',
'company_location_uuid' => '3929469b-a863-3af6-82e1-75f906f792b5',
'media_source_uuid' => 'a8c29fdb-7413-3f89-9743-3fa68124e5c2',
'include_global_files' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/media-items"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_uuid": "1dba5598-94ed-38fe-bb5b-a1dad22b11c3",
"company_location_uuid": "3929469b-a863-3af6-82e1-75f906f792b5",
"media_source_uuid": "a8c29fdb-7413-3f89-9743-3fa68124e5c2",
"include_global_files": false
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single media item
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/media-items/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/media-items/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://api.smarterlaunch.com/api/v1/media-items/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Upload a media item
Example request:
curl --request POST \
"https://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=earum"\
--form "description=Sunt esse cum officia sed."\
--form "directory=proposal-template"\
--form "type=document"\
--form "fileUpload=@/tmp/phpo9c1hh"
$client = new \GuzzleHttp\Client();
$url = 'https://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' => 'earum'
],
[
'name' => 'description',
'contents' => 'Sunt esse cum officia sed.'
],
[
'name' => 'directory',
'contents' => 'proposal-template'
],
[
'name' => 'type',
'contents' => 'document'
],
[
'name' => 'fileUpload',
'contents' => fopen('/tmp/phpo9c1hh', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://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', 'earum');
body.append('description', 'Sunt esse cum officia sed.');
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a media item.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/media-items/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"earum\",
\"description\": \"Sunt cum ipsam voluptatum repudiandae tempore.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/media-items/1';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'earum',
'description' => 'Sunt cum ipsam voluptatum repudiandae tempore.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/media-items/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "earum",
"description": "Sunt cum ipsam voluptatum repudiandae tempore."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a media item.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/media-items/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"fugiat\",
\"description\": \"Dolor mollitia molestiae omnis.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/media-items/1';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'fugiat',
'description' => 'Dolor mollitia molestiae omnis.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/media-items/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "fugiat",
"description": "Dolor mollitia molestiae omnis."
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a media item.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/media-items/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/media-items/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://api.smarterlaunch.com/api/v1/media-items/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Company Product
API for company product details
List
requires authentication
Shows the list of company products with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/products" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/products';
$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://api.smarterlaunch.com/api/v1/companies/1/products"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single company product.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/products/31bb8817-9038-3be5-99b8-5380cbbdf8f3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/products/31bb8817-9038-3be5-99b8-5380cbbdf8f3';
$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://api.smarterlaunch.com/api/v1/companies/1/products/31bb8817-9038-3be5-99b8-5380cbbdf8f3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a newly created company product.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/products" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"ullam\",
\"product_attributes\": {
\"attr\": \"value\"
},
\"label_image_url\": \"http:\\/\\/smarterlaunch.local\\/image1.jpg\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/products';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'ullam',
'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://api.smarterlaunch.com/api/v1/companies/1/products"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "ullam",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a company product.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/products/09dea0d5-8558-3658-b2cd-9f32d42d80e1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"eligendi\",
\"product_attributes\": {
\"attr\": \"value\"
},
\"label_image_url\": \"http:\\/\\/smarterlaunch.local\\/image1.jpg\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/products/09dea0d5-8558-3658-b2cd-9f32d42d80e1';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'eligendi',
'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://api.smarterlaunch.com/api/v1/companies/1/products/09dea0d5-8558-3658-b2cd-9f32d42d80e1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "eligendi",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a company product.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/products/84bd28f6-5ff0-30c1-b110-a8c1dbd1fc1c" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"itaque\",
\"product_attributes\": {
\"attr\": \"value\"
},
\"label_image_url\": \"http:\\/\\/smarterlaunch.local\\/image1.jpg\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/products/84bd28f6-5ff0-30c1-b110-a8c1dbd1fc1c';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'itaque',
'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://api.smarterlaunch.com/api/v1/companies/1/products/84bd28f6-5ff0-30c1-b110-a8c1dbd1fc1c"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "itaque",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a product.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/products/f6de756e-b00d-3469-93a3-bbab5c253034" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/products/f6de756e-b00d-3469-93a3-bbab5c253034';
$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://api.smarterlaunch.com/api/v1/companies/1/products/f6de756e-b00d-3469-93a3-bbab5c253034"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tag
API for Tag
List
requires authentication
Shows the list of tags with pagination.
Permission
API for permission details
List / Fetch
requires authentication
Shows the list of permission or fetch single record using uuid.
Example request:
curl --request GET \
--get "https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List / Fetch
requires authentication
Shows the list of permission or fetch single record using uuid.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/permissions/1" \
--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://api.smarterlaunch.com/api/v1/permissions/1';
$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://api.smarterlaunch.com/api/v1/permissions/1"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create / Update permission.
requires authentication
This endpoint lets user to create/update permission.
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create / Update permission.
requires authentication
This endpoint lets user to create/update permission.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/permissions/1" \
--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://api.smarterlaunch.com/api/v1/permissions/1';
$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://api.smarterlaunch.com/api/v1/permissions/1"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
This endpoint allows user to delete permission.
Example request:
curl --request DELETE \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Company File
API for Company File
Store
requires authentication
Upload a file into a company
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/files" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=ut"\
--form "description=Dolores at fugit quo porro neque et est laborum."\
--form "directory=proposal-template"\
--form "type=document"\
--form "fileUpload=@/tmp/phpfSdkCi"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/files';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'ut'
],
[
'name' => 'description',
'contents' => 'Dolores at fugit quo porro neque et est laborum.'
],
[
'name' => 'directory',
'contents' => 'proposal-template'
],
[
'name' => 'type',
'contents' => 'document'
],
[
'name' => 'fileUpload',
'contents' => fopen('/tmp/phpfSdkCi', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/files"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'ut');
body.append('description', 'Dolores at fugit quo porro neque et est laborum.');
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a file from a company
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/files" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"file_url\": \"http:\\/\\/reichert.com\\/voluptatibus-libero-voluptatem-culpa\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/files';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'file_url' => 'http://reichert.com/voluptatibus-libero-voluptatem-culpa',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/files"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"file_url": "http:\/\/reichert.com\/voluptatibus-libero-voluptatem-culpa"
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Country
API for country details
List / Fetch
Shows the list of country or fetch single record using uuid.
Example request:
curl --request GET \
--get "https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List / Fetch
Shows the list of country or fetch single record using uuid.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/countries/2cd8a99a-a9ee-381e-9449-a83c2929df1c" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\",
\"name\": \"baroda\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/countries/2cd8a99a-a9ee-381e-9449-a83c2929df1c';
$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://api.smarterlaunch.com/api/v1/countries/2cd8a99a-a9ee-381e-9449-a83c2929df1c"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get country states using country uuid.
Shows the list of states using country uuid.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/countries/8d9a1669-aae0-31da-a891-06a6beb004d8/states" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/countries/8d9a1669-aae0-31da-a891-06a6beb004d8/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://api.smarterlaunch.com/api/v1/countries/8d9a1669-aae0-31da-a891-06a6beb004d8/states"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Solution Category
API for Solution Category
List
requires authentication
Shows the list of solution categories.
Example request:
curl --request GET \
--get "https://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\": [
\"solutions\"
],
\"ignore_cached\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://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' => [
'solutions',
],
'ignore_cached' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://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": [
"solutions"
],
"ignore_cached": true
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single solution category.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/solution-categories/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/solution-categories/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://api.smarterlaunch.com/api/v1/solution-categories/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a new solution category.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/solution-categories" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"libero\",
\"description\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\",
\"parent_solution_category_uuid\": \"\\\"3c787d66-2a4f-3f1d-9591-c330be0abe82\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://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' => 'libero',
'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://api.smarterlaunch.com/api/v1/solution-categories"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "libero",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a solution category.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/solution-categories/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"qui\",
\"description\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\",
\"parent_solution_category_uuid\": \"\\\"3c787d66-2a4f-3f1d-9591-c330be0abe82\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/solution-categories/1';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'qui',
'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://api.smarterlaunch.com/api/v1/solution-categories/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "qui",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reset
requires authentication
Reset a solution category user progress.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/solution-categories/1/reset" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/solution-categories/1/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://api.smarterlaunch.com/api/v1/solution-categories/1/reset"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update user progress
requires authentication
Update user progress.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/solution-categories/1/user-progress" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"is_completed\": false,
\"step\": []
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/solution-categories/1/user-progress';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'is_completed' => false,
'step' => [],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/solution-categories/1/user-progress"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"is_completed": false,
"step": []
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch Index
requires authentication
Performs specific updates for solution categories
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/solution-categories/1/sort" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/solution-categories/1/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://api.smarterlaunch.com/api/v1/solution-categories/1/sort"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a solution category.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/solution-categories/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"officiis\",
\"description\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\",
\"parent_solution_category_uuid\": \"\\\"3c787d66-2a4f-3f1d-9591-c330be0abe82\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/solution-categories/1';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'officiis',
'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://api.smarterlaunch.com/api/v1/solution-categories/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "officiis",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a solution category.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/solution-categories/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/solution-categories/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://api.smarterlaunch.com/api/v1/solution-categories/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Solution Feedback
API for Solution Feedback
List
requires authentication
Shows the list of solution feedbacks.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/solutions/1/feedback" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/solutions/1/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://api.smarterlaunch.com/api/v1/solutions/1/feedback"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single solution.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/solutions/1/feedback/40afaa62-96f5-397d-88e1-45f61de61d74" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/solutions/1/feedback/40afaa62-96f5-397d-88e1-45f61de61d74';
$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://api.smarterlaunch.com/api/v1/solutions/1/feedback/40afaa62-96f5-397d-88e1-45f61de61d74"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a new solution feedback.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/solutions/1/feedback" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"rate\": 8,
\"feedback\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/solutions/1/feedback';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'rate' => 8,
'feedback' => '"Lorem ipsum dolor sit amet consectetur adipisicing elit."',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/solutions/1/feedback"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"rate": 8,
"feedback": "\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\""
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a solution .
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/solutions/1/feedback/a922e0d7-338e-3bd9-938e-b98cc252d11f" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"rate\": 14,
\"feedback\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/solutions/1/feedback/a922e0d7-338e-3bd9-938e-b98cc252d11f';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'rate' => 14,
'feedback' => '"Lorem ipsum dolor sit amet consectetur adipisicing elit."',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/solutions/1/feedback/a922e0d7-338e-3bd9-938e-b98cc252d11f"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"rate": 14,
"feedback": "\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\""
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a solution feedback.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/solutions/1/feedback/8b44bdb3-f069-347f-b9db-eae060610299" \
--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://api.smarterlaunch.com/api/v1/solutions/1/feedback/8b44bdb3-f069-347f-b9db-eae060610299';
$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://api.smarterlaunch.com/api/v1/solutions/1/feedback/8b44bdb3-f069-347f-b9db-eae060610299"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/solutions/1/feedback/5f6ccf7f-e11c-3f6a-b21b-74f3abe227c3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/solutions/1/feedback/5f6ccf7f-e11c-3f6a-b21b-74f3abe227c3';
$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://api.smarterlaunch.com/api/v1/solutions/1/feedback/5f6ccf7f-e11c-3f6a-b21b-74f3abe227c3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Company Users
API for company details
List
requires authentication
Shows the list of company users that the user has access to view.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/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\": false,
\"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://api.smarterlaunch.com/api/v1/companies/1/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' => false,
'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://api.smarterlaunch.com/api/v1/companies/1/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": false,
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Shows detail of a specific company user
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/users/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/users/3';
$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://api.smarterlaunch.com/api/v1/companies/1/users/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Send invitation to user.
requires authentication
This endpoint lets company owner to send invite to its sub-user.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/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\": [],
\"last_name\": \"Smith\",
\"company_locations[]\": \"[\\\"45955590-4152-11ec-9c77-2181a8ee04db\\\"]\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/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' => [],
'last_name' => 'Smith',
'company_locations[]' => '["45955590-4152-11ec-9c77-2181a8ee04db"]',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/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": [],
"last_name": "Smith",
"company_locations[]": "[\"45955590-4152-11ec-9c77-2181a8ee04db\"]"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Resend invitation to user.
requires authentication
This endpoint lets company owner to send invite to its sub-user.
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Force activate user
requires authentication
This endpoint lets admin/super admin to activate user.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/users/3/activate" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/users/3/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://api.smarterlaunch.com/api/v1/companies/1/users/3/activate"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
This endpoint lets the user update company user.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/users/3" \
--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://api.smarterlaunch.com/api/v1/companies/1/users/3';
$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://api.smarterlaunch.com/api/v1/companies/1/users/3"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
This endpoint lets the user patch company user.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/users/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"John\",
\"role_uuid\": \"45955590-4152-11ec-9c77-2181a8ee04db\",
\"company_locations\": [
\"3245d630-24fd-11ec-accd-e397aec85c7f\"
],
\"status_uuid\": \"4a84373c-c669-316b-adc9-f0df591b8b27\",
\"last_name\": \"Smith\",
\"email\": \"hello@smarterlaunch.com\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/users/3';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'first_name' => 'John',
'role_uuid' => '45955590-4152-11ec-9c77-2181a8ee04db',
'company_locations' => [
'3245d630-24fd-11ec-accd-e397aec85c7f',
],
'status_uuid' => '4a84373c-c669-316b-adc9-f0df591b8b27',
'last_name' => 'Smith',
'email' => 'hello@smarterlaunch.com',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/users/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "John",
"role_uuid": "45955590-4152-11ec-9c77-2181a8ee04db",
"company_locations": [
"3245d630-24fd-11ec-accd-e397aec85c7f"
],
"status_uuid": "4a84373c-c669-316b-adc9-f0df591b8b27",
"last_name": "Smith",
"email": "hello@smarterlaunch.com"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
This endpoint allows owner to delete a user.
Example request:
curl --request DELETE \
"https://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://api.smarterlaunch.com/api/v1/companies/1/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://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: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Company Field Group
API for Company field group details
List
requires authentication
Shows the list of company custom field groups with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups';
$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://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single company custom field group.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups/b5221609-e8e5-36bf-be95-c4b34bdd539c" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups/b5221609-e8e5-36bf-be95-c4b34bdd539c';
$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://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups/b5221609-e8e5-36bf-be95-c4b34bdd539c"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a newly created company custom field group.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"quod\",
\"assignment\": \"excepturi\",
\"company_custom_fields\": [
\"qui\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'quod',
'assignment' => 'excepturi',
'company_custom_fields' => [
'qui',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "quod",
"assignment": "excepturi",
"company_custom_fields": [
"qui"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a company custom field group.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups/3fb013ee-b54b-3c27-814e-5560b5493a66" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"quo\",
\"assignment\": \"perspiciatis\",
\"company_custom_fields\": [
\"nulla\"
],
\"deleted_custom_field_uuids\": [
\"ullam\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups/3fb013ee-b54b-3c27-814e-5560b5493a66';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'quo',
'assignment' => 'perspiciatis',
'company_custom_fields' => [
'nulla',
],
'deleted_custom_field_uuids' => [
'ullam',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups/3fb013ee-b54b-3c27-814e-5560b5493a66"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "quo",
"assignment": "perspiciatis",
"company_custom_fields": [
"nulla"
],
"deleted_custom_field_uuids": [
"ullam"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a company custom field group.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups/683ea402-029c-3208-ae2e-e616f1cabbd4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"dolorum\",
\"assignment\": \"sed\",
\"company_custom_fields\": [
\"magni\"
],
\"deleted_custom_field_uuids\": [
\"itaque\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups/683ea402-029c-3208-ae2e-e616f1cabbd4';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'dolorum',
'assignment' => 'sed',
'company_custom_fields' => [
'magni',
],
'deleted_custom_field_uuids' => [
'itaque',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups/683ea402-029c-3208-ae2e-e616f1cabbd4"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "dolorum",
"assignment": "sed",
"company_custom_fields": [
"magni"
],
"deleted_custom_field_uuids": [
"itaque"
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a company custom field group.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups/81070fb6-fbb9-3820-8e17-987556889f5b" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups/81070fb6-fbb9-3820-8e17-987556889f5b';
$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://api.smarterlaunch.com/api/v1/companies/1/custom-field-groups/81070fb6-fbb9-3820-8e17-987556889f5b"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Other Endpoints
POST api/v1/upload-from-url
requires authentication
Example request:
curl --request POST \
"https://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\": \"https:\\/\\/www.kuvalis.org\\/magni-earum-assumenda-recusandae-asperiores-qui-accusantium-temporibus\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://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' => 'https://www.kuvalis.org/magni-earum-assumenda-recusandae-asperiores-qui-accusantium-temporibus',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://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": "https:\/\/www.kuvalis.org\/magni-earum-assumenda-recusandae-asperiores-qui-accusantium-temporibus"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/auth/webhook-receiving-url
requires authentication
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/auth/webhook-receiving-url" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/auth/webhook-receiving-url';
$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://api.smarterlaunch.com/api/v1/auth/webhook-receiving-url"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Test
requires authentication
Save new webhook subscription
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST Get S3 Pre-signed Url for Proposal Review
requires authentication
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST Get S3 Pre-signed Url
requires authentication
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST Get S3 Pre-signed Url
requires authentication
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List
requires authentication
Shows the list of line items with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/line-items" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/line-items';
$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://api.smarterlaunch.com/api/v1/companies/1/line-items"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single line item.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/line-items/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/line-items/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://api.smarterlaunch.com/api/v1/companies/1/line-items/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a new line item.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/line-items" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"dolorem\",
\"description\": \"Qui dignissimos similique sit minima voluptatem sed.\",
\"line_item_values\": \"aut\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/line-items';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'dolorem',
'description' => 'Qui dignissimos similique sit minima voluptatem sed.',
'line_item_values' => 'aut',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/line-items"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "dolorem",
"description": "Qui dignissimos similique sit minima voluptatem sed.",
"line_item_values": "aut"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Import Set to Line Items
requires authentication
Store a newly created import set.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/line-items/import" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"import_files\": \"cupiditate\",
\"override\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/line-items/import';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'import_files' => 'cupiditate',
'override' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/line-items/import"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"import_files": "cupiditate",
"override": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a line item.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/line-items/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"amet\",
\"description\": \"Omnis magni quisquam soluta nobis voluptatibus et.\",
\"line_item_values\": \"inventore\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/line-items/1';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'amet',
'description' => 'Omnis magni quisquam soluta nobis voluptatibus et.',
'line_item_values' => 'inventore',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/line-items/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "amet",
"description": "Omnis magni quisquam soluta nobis voluptatibus et.",
"line_item_values": "inventore"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Update a line item.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/line-items/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"dolore\",
\"description\": \"Optio saepe ut velit quis.\",
\"line_item_values\": \"ratione\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/line-items/1';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'dolore',
'description' => 'Optio saepe ut velit quis.',
'line_item_values' => 'ratione',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/line-items/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "dolore",
"description": "Optio saepe ut velit quis.",
"line_item_values": "ratione"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a line item.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/line-items/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/line-items/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://api.smarterlaunch.com/api/v1/companies/1/line-items/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List
requires authentication
Shows the list of teams with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/teams" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/teams';
$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://api.smarterlaunch.com/api/v1/companies/1/teams"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single team.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/teams/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/teams/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://api.smarterlaunch.com/api/v1/companies/1/teams/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a newly created team.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/teams" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"unde\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/teams';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'unde',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/teams"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "unde"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a team.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/teams/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"asperiores\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/teams/1';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'asperiores',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/teams/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "asperiores"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a company team.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/teams/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"est\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/teams/1';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'est',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/teams/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "est"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a team.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/teams/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/teams/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://api.smarterlaunch.com/api/v1/companies/1/teams/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List
requires authentication
Returns the list of available reports
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/reports/templates" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/reports/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://api.smarterlaunch.com/api/v1/reports/templates"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a report template.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/reports/templates/c13f1c16-4d62-33eb-b149-3f7794808670" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/reports/templates/c13f1c16-4d62-33eb-b149-3f7794808670';
$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://api.smarterlaunch.com/api/v1/reports/templates/c13f1c16-4d62-33eb-b149-3f7794808670"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a report template.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/reports/templates/5a34ace7-19d1-32de-8b2a-4641fc1849cc" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/reports/templates/5a34ace7-19d1-32de-8b2a-4641fc1849cc';
$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://api.smarterlaunch.com/api/v1/reports/templates/5a34ace7-19d1-32de-8b2a-4641fc1849cc"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List
requires authentication
Shows the list of webhooks.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/webhooks/subscribe" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/webhooks/subscribe';
$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://api.smarterlaunch.com/api/v1/webhooks/subscribe"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Save new webhook subscription
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a webhook.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/webhooks/subscribe/294cffd8-b2af-318e-ab3a-ea75da5717ca" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/webhooks/subscribe/294cffd8-b2af-318e-ab3a-ea75da5717ca';
$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://api.smarterlaunch.com/api/v1/webhooks/subscribe/294cffd8-b2af-318e-ab3a-ea75da5717ca"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List / Fetch
requires authentication
Shows the list of users or fetch single record using uuid.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/users/3" \
--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://api.smarterlaunch.com/api/v1/users/3';
$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://api.smarterlaunch.com/api/v1/users/3"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store user profile pic.
requires authentication
This endpoint lets user to upload or update profile picture.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/users/3/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/phpnC7mch"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/users/3/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/phpnC7mch', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/users/3/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store user signature pic.
requires authentication
This endpoint lets user to upload or update signature picture.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/users/3/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/php2RDXbf"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/users/3/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/php2RDXbf', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/users/3/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create / Update.
requires authentication
This endpoint lets user to create or update single record using uuid
Example request:
curl --request POST \
"https://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/phpFqsgEh"
$client = new \GuzzleHttp\Client();
$url = 'https://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/phpFqsgEh', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create / Update.
requires authentication
This endpoint lets user to create or update single record using uuid
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/users/3" \
--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/phpJvtH7g"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/users/3';
$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/phpJvtH7g', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/users/3"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
This endpoint allows users to patch their user info.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/users/3" \
--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\": [
\"nostrum\"
],
\"uuid\": \"3245d630-24fd-11ec-accd-e397aec85c7f\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/users/3';
$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' => [
'nostrum',
],
'uuid' => '3245d630-24fd-11ec-accd-e397aec85c7f',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/users/3"
);
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": [
"nostrum"
],
"uuid": "3245d630-24fd-11ec-accd-e397aec85c7f"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove Profile pic.
requires authentication
This endpoint allows users to remove profile pictures with proper authorization.
Example request:
curl --request DELETE \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove Profile pic.
requires authentication
This endpoint allows users to remove profile pictures with proper authorization.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/users/3/image" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/users/3/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://api.smarterlaunch.com/api/v1/users/3/image"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
This end point allows user to delete the user-account.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/users/3" \
--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://api.smarterlaunch.com/api/v1/users/3';
$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://api.smarterlaunch.com/api/v1/users/3"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Company Location Custom Settings
API for company location custom settings
List
requires authentication
Shows the list of do with filter or single template page data.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show detail of a company location setting
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/custom-settings/c9fbb444-b686-31ce-850a-4969eafc7f7e" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/custom-settings/c9fbb444-b686-31ce-850a-4969eafc7f7e';
$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://api.smarterlaunch.com/api/v1/companies/1/custom-settings/c9fbb444-b686-31ce-850a-4969eafc7f7e"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create
requires authentication
Create a company location custom setting
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a company location custom setting
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/custom-settings/ff9691d0-dc3b-3c60-bbdb-3d9a10e03823" \
--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://api.smarterlaunch.com/api/v1/companies/1/custom-settings/ff9691d0-dc3b-3c60-bbdb-3d9a10e03823';
$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://api.smarterlaunch.com/api/v1/companies/1/custom-settings/ff9691d0-dc3b-3c60-bbdb-3d9a10e03823"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Deletes a company location custom setting
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/custom-settings/4e9c0201-640d-3d8f-9472-8d42c1b031b4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/custom-settings/4e9c0201-640d-3d8f-9472-8d42c1b031b4';
$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://api.smarterlaunch.com/api/v1/companies/1/custom-settings/4e9c0201-640d-3d8f-9472-8d42c1b031b4"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Import Type
API for Import Type
List
requires authentication
Shows the list of tags with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/import-types" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/import-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://api.smarterlaunch.com/api/v1/import-types"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Proposal
API for Proposal
Get
requires authentication
Display the selected proposal.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/preview" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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://api.smarterlaunch.com/api/v1/companies/1/proposals/15/preview"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get client IP Address and Date time prior to accepting the proposal
requires authentication
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/get-ip-datetime" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store Proposal Inquiry
requires authentication
Send inquiry request from users
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Upload
requires authentication
Upload photos for Cover Letter or Photo Layout pages
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/d19756ad-77eb-39b9-b5c4-74d901111c35/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://api.smarterlaunch.com/api/v1/companies/1/proposals/15/d19756ad-77eb-39b9-b5c4-74d901111c35/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://api.smarterlaunch.com/api/v1/companies/1/proposals/15/d19756ad-77eb-39b9-b5c4-74d901111c35/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Accept and Sign
requires authentication
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/accept-sign" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"signature_photo_url\": \"http:\\/\\/www.bernier.com\\/nihil-et-facilis-omnis-debitis-earum-aut-et-qui.html\",
\"proposal_pdf_url\": \"http:\\/\\/stiedemann.com\\/et-eveniet-molestiae-et-eum-cum-molestiae-consequuntur-qui.html\",
\"auth_code\": \"aut\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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.bernier.com/nihil-et-facilis-omnis-debitis-earum-aut-et-qui.html',
'proposal_pdf_url' => 'http://stiedemann.com/et-eveniet-molestiae-et-eum-cum-molestiae-consequuntur-qui.html',
'auth_code' => 'aut',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/accept-sign"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"signature_photo_url": "http:\/\/www.bernier.com\/nihil-et-facilis-omnis-debitis-earum-aut-et-qui.html",
"proposal_pdf_url": "http:\/\/stiedemann.com\/et-eveniet-molestiae-et-eum-cum-molestiae-consequuntur-qui.html",
"auth_code": "aut"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Replicate Signature
requires authentication
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/replace-signature" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"signature_photo_url\": \"http:\\/\\/lockman.com\\/aut-numquam-eaque-accusantium-quia-voluptas\",
\"proposal_pdf_url\": \"http:\\/\\/www.bergstrom.com\\/\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/replace-signature';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'signature_photo_url' => 'http://lockman.com/aut-numquam-eaque-accusantium-quia-voluptas',
'proposal_pdf_url' => 'http://www.bergstrom.com/',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/replace-signature"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"signature_photo_url": "http:\/\/lockman.com\/aut-numquam-eaque-accusantium-quia-voluptas",
"proposal_pdf_url": "http:\/\/www.bergstrom.com\/"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Attached Document
requires authentication
Patch the specified proposal.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/update-attachment" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "documentIndex=3769.68748186"\
--form "documentFile=@/tmp/phpdyu2Hi"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/update-attachment';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'documentIndex',
'contents' => '3769.68748186'
],
[
'name' => 'documentFile',
'contents' => fopen('/tmp/phpdyu2Hi', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/update-attachment"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('documentIndex', '3769.68748186');
body.append('documentFile', document.querySelector('input[name="documentFile"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Log Video Clicked
requires authentication
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/video-clicked" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"video_type\": \"excepturi\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/video-clicked';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'video_type' => 'excepturi',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/video-clicked"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"video_type": "excepturi"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Decline
requires authentication
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/decline" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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://api.smarterlaunch.com/api/v1/companies/1/proposals/15/decline"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Selected Pricing
requires authentication
Patch the specified proposal.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Submit Customer Forms
requires authentication
Patch the specified proposal.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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://api.smarterlaunch.com/api/v1/companies/1/proposals/15/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List
requires authentication
Shows the list of proposal with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/proposals" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ignore_cached\": true,
\"date_range_start\": \"2025-08-07T07:45:04\",
\"date_range_end\": \"2026-09-11\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'ignore_cached' => true,
'date_range_start' => '2025-08-07T07:45:04',
'date_range_end' => '2026-09-11',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/proposals"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ignore_cached": true,
"date_range_start": "2025-08-07T07:45:04",
"date_range_end": "2026-09-11"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export List
requires authentication
Returns a CSV file of list of filtered proposal list.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/proposals/export-list" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://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',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/proposals/export-list"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Summary
requires authentication
Shows the summary of proposal. Returns number of items per Proposal status.
Example request:
curl --request GET \
--get "https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get
requires authentication
Display the selected proposal.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/proposals/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/15';
$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://api.smarterlaunch.com/api/v1/proposals/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List of Activity Logs
requires authentication
Shows the list of proposal's activity logs with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/proposals/15/activity-logs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/15/activity-logs';
$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://api.smarterlaunch.com/api/v1/proposals/15/activity-logs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get the events associated with a specific proposal activity
requires authentication
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/proposals/15/activity/7ec0618f-e611-31df-99f8-4b7a460e75ba/events" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/15/activity/7ec0618f-e611-31df-99f8-4b7a460e75ba/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://api.smarterlaunch.com/api/v1/proposals/15/activity/7ec0618f-e611-31df-99f8-4b7a460e75ba/events"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Download TARF XML
requires authentication
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/proposals/15/tarf-xml-url" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/15/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://api.smarterlaunch.com/api/v1/proposals/15/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Download California WDO XML
requires authentication
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/proposals/15/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://api.smarterlaunch.com/api/v1/proposals/15/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://api.smarterlaunch.com/api/v1/proposals/15/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create
requires authentication
Store a newly created proposal activity entry
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/proposals/15/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://api.smarterlaunch.com/api/v1/proposals/15/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://api.smarterlaunch.com/api/v1/proposals/15/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
action
requires authentication
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/proposals/15/activity-logs/1630e129-0937-3cc8-8d88-3d10bec37466/sit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/15/activity-logs/1630e129-0937-3cc8-8d88-3d10bec37466/sit';
$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://api.smarterlaunch.com/api/v1/proposals/15/activity-logs/1630e129-0937-3cc8-8d88-3d10bec37466/sit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create
requires authentication
Store a newly created proposal.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/proposals" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"blanditiis\",
\"description\": \"Eius dolor est dolores ut dolore et.\",
\"company_location_uuid\": \"cdb4838d-352e-368b-ac58-6a3675e989aa\",
\"customer_uuid\": \"a2041d33-7a5a-38fb-9a75-6d8cafa63113\",
\"customer_address_uuid\": \"43a0829a-3a5d-3abd-924e-c803cd5657a3\",
\"status_uuid\": \"fecc8201-eb00-3ad9-89f0-d55da64a8b3c\",
\"service_plan_uuids\": [
\"reiciendis\"
],
\"proposal_values\": [],
\"proposal_template_uuid\": \"4a30b89d-8486-3c7e-9a7a-63a43b196599\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://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' => 'blanditiis',
'description' => 'Eius dolor est dolores ut dolore et.',
'company_location_uuid' => 'cdb4838d-352e-368b-ac58-6a3675e989aa',
'customer_uuid' => 'a2041d33-7a5a-38fb-9a75-6d8cafa63113',
'customer_address_uuid' => '43a0829a-3a5d-3abd-924e-c803cd5657a3',
'status_uuid' => 'fecc8201-eb00-3ad9-89f0-d55da64a8b3c',
'service_plan_uuids' => [
'reiciendis',
],
'proposal_values' => [],
'proposal_template_uuid' => '4a30b89d-8486-3c7e-9a7a-63a43b196599',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/proposals"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "blanditiis",
"description": "Eius dolor est dolores ut dolore et.",
"company_location_uuid": "cdb4838d-352e-368b-ac58-6a3675e989aa",
"customer_uuid": "a2041d33-7a5a-38fb-9a75-6d8cafa63113",
"customer_address_uuid": "43a0829a-3a5d-3abd-924e-c803cd5657a3",
"status_uuid": "fecc8201-eb00-3ad9-89f0-d55da64a8b3c",
"service_plan_uuids": [
"reiciendis"
],
"proposal_values": [],
"proposal_template_uuid": "4a30b89d-8486-3c7e-9a7a-63a43b196599"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Duplicate
requires authentication
This endpoint lets user to duplicate proposal and set into a draft mode
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/proposals/3245d630-24fd-11ec-accd-e397aec85c7f/duplicate" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/3245d630-24fd-11ec-accd-e397aec85c7f/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://api.smarterlaunch.com/api/v1/proposals/3245d630-24fd-11ec-accd-e397aec85c7f/duplicate"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Upload Review Photo
requires authentication
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/proposals/15/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/phpgpzj2g"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/15/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/phpgpzj2g', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/proposals/15/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Resync document
requires authentication
Resync document the specified proposal.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/proposals/15/push-to-crm" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"est\",
\"description\": \"Est consequatur qui libero.\",
\"company_location_uuid\": \"56739d85-4549-3b43-9872-1a16ce010f0e\",
\"customer_uuid\": \"3a1d524b-731d-3078-b6c8-f245273cbce2\",
\"customer_address_uuid\": \"961743a0-ade8-3356-ac5c-1dfdae8112c0\",
\"status_uuid\": \"ccf042fa-3e0a-383f-b272-3778ae66b5d0\",
\"service_plan_uuids\": [
\"qui\"
],
\"proposal_values\": [],
\"proposal_template_uuid\": \"a1fbba5a-121f-322b-be99-de92eb342d7d\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/15/push-to-crm';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'est',
'description' => 'Est consequatur qui libero.',
'company_location_uuid' => '56739d85-4549-3b43-9872-1a16ce010f0e',
'customer_uuid' => '3a1d524b-731d-3078-b6c8-f245273cbce2',
'customer_address_uuid' => '961743a0-ade8-3356-ac5c-1dfdae8112c0',
'status_uuid' => 'ccf042fa-3e0a-383f-b272-3778ae66b5d0',
'service_plan_uuids' => [
'qui',
],
'proposal_values' => [],
'proposal_template_uuid' => 'a1fbba5a-121f-322b-be99-de92eb342d7d',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/proposals/15/push-to-crm"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "est",
"description": "Est consequatur qui libero.",
"company_location_uuid": "56739d85-4549-3b43-9872-1a16ce010f0e",
"customer_uuid": "3a1d524b-731d-3078-b6c8-f245273cbce2",
"customer_address_uuid": "961743a0-ade8-3356-ac5c-1dfdae8112c0",
"status_uuid": "ccf042fa-3e0a-383f-b272-3778ae66b5d0",
"service_plan_uuids": [
"qui"
],
"proposal_values": [],
"proposal_template_uuid": "a1fbba5a-121f-322b-be99-de92eb342d7d"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Updates the specified proposal.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/proposals/15" \
--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\": \"a00123f6-2265-38db-ae81-90c96f610da2\",
\"customer_uuid\": \"1f4b2437-4e97-3c9f-bcc1-d6709d7a36fe\",
\"customer_address_uuid\": \"7ce6247f-4e8d-3935-be18-fc6d9c6de433\",
\"status_uuid\": \"c3b79c81-018b-316a-85e0-e92a50a87e9d\",
\"service_plan_uuids\": [
\"quis\"
],
\"proposal_values\": [],
\"proposal_template_uuid\": \"1726f684-2974-3d42-a6f7-c922f3ac75bb\",
\"expire_at\": \"2025-08-07T07:45:04\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/15';
$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' => 'a00123f6-2265-38db-ae81-90c96f610da2',
'customer_uuid' => '1f4b2437-4e97-3c9f-bcc1-d6709d7a36fe',
'customer_address_uuid' => '7ce6247f-4e8d-3935-be18-fc6d9c6de433',
'status_uuid' => 'c3b79c81-018b-316a-85e0-e92a50a87e9d',
'service_plan_uuids' => [
'quis',
],
'proposal_values' => [],
'proposal_template_uuid' => '1726f684-2974-3d42-a6f7-c922f3ac75bb',
'expire_at' => '2025-08-07T07:45:04',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/proposals/15"
);
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": "a00123f6-2265-38db-ae81-90c96f610da2",
"customer_uuid": "1f4b2437-4e97-3c9f-bcc1-d6709d7a36fe",
"customer_address_uuid": "7ce6247f-4e8d-3935-be18-fc6d9c6de433",
"status_uuid": "c3b79c81-018b-316a-85e0-e92a50a87e9d",
"service_plan_uuids": [
"quis"
],
"proposal_values": [],
"proposal_template_uuid": "1726f684-2974-3d42-a6f7-c922f3ac75bb",
"expire_at": "2025-08-07T07:45:04"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a proposal activity entry
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/proposals/15/activity-logs/ead3a0a6-6916-3b9d-847f-e7fc8699a328" \
--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://api.smarterlaunch.com/api/v1/proposals/15/activity-logs/ead3a0a6-6916-3b9d-847f-e7fc8699a328';
$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://api.smarterlaunch.com/api/v1/proposals/15/activity-logs/ead3a0a6-6916-3b9d-847f-e7fc8699a328"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch the specified proposal.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/proposals/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"aut\",
\"description\": \"Ut quis in aspernatur sunt non.\",
\"company_location_uuid\": \"31999fbf-789e-33f0-8dea-d242bd4566d6\",
\"customer_uuid\": \"c60251ef-7096-309e-b1c7-59b63928818e\",
\"customer_address_uuid\": \"ca9a734b-e27f-378b-8bf7-5551eb305034\",
\"status_uuid\": \"fe6060bd-2a8b-3119-9792-ff79c1767976\",
\"service_plan_uuids\": [
\"sequi\"
],
\"proposal_values\": [],
\"proposal_template_uuid\": \"b352fea6-715e-3a8c-b5a4-e854ee3668a3\",
\"expire_at\": \"2025-08-07T07:45:04\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/15';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'aut',
'description' => 'Ut quis in aspernatur sunt non.',
'company_location_uuid' => '31999fbf-789e-33f0-8dea-d242bd4566d6',
'customer_uuid' => 'c60251ef-7096-309e-b1c7-59b63928818e',
'customer_address_uuid' => 'ca9a734b-e27f-378b-8bf7-5551eb305034',
'status_uuid' => 'fe6060bd-2a8b-3119-9792-ff79c1767976',
'service_plan_uuids' => [
'sequi',
],
'proposal_values' => [],
'proposal_template_uuid' => 'b352fea6-715e-3a8c-b5a4-e854ee3668a3',
'expire_at' => '2025-08-07T07:45:04',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/proposals/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "aut",
"description": "Ut quis in aspernatur sunt non.",
"company_location_uuid": "31999fbf-789e-33f0-8dea-d242bd4566d6",
"customer_uuid": "c60251ef-7096-309e-b1c7-59b63928818e",
"customer_address_uuid": "ca9a734b-e27f-378b-8bf7-5551eb305034",
"status_uuid": "fe6060bd-2a8b-3119-9792-ff79c1767976",
"service_plan_uuids": [
"sequi"
],
"proposal_values": [],
"proposal_template_uuid": "b352fea6-715e-3a8c-b5a4-e854ee3668a3",
"expire_at": "2025-08-07T07:45:04"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Share
requires authentication
Send proposal via email
Delete
requires authentication
Delete a specified proposal.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/proposals/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/15';
$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://api.smarterlaunch.com/api/v1/proposals/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete Review Photo
requires authentication
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/proposals/15/delete-review-photo" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"image_url\": \"http:\\/\\/www.steuber.com\\/\",
\"type\": \"\'cover\'.\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/15/delete-review-photo';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'image_url' => 'http://www.steuber.com/',
'type' => '\'cover\'.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/proposals/15/delete-review-photo"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"image_url": "http:\/\/www.steuber.com\/",
"type": "'cover'."
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a proposal activity entry
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/proposals/15/activity-logs/bcf1f508-f222-3163-a20f-22b24fa83634" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/proposals/15/activity-logs/bcf1f508-f222-3163-a20f-22b24fa83634';
$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://api.smarterlaunch.com/api/v1/proposals/15/activity-logs/bcf1f508-f222-3163-a20f-22b24fa83634"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Service Agreement
API for service agreement details
List
requires authentication
Shows the list of company service agreements with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/service-agreements" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/service-agreements';
$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://api.smarterlaunch.com/api/v1/companies/1/service-agreements"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single service agreement.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/service-agreements/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/service-agreements/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://api.smarterlaunch.com/api/v1/companies/1/service-agreements/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a service agreement.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/service-agreements" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"quae\",
\"content\": \"et\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/service-agreements';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'quae',
'content' => 'et',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/service-agreements"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "quae",
"content": "et"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a service agreement.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/service-agreements/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"possimus\",
\"content\": \"suscipit\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/service-agreements/1';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'possimus',
'content' => 'suscipit',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/service-agreements/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "possimus",
"content": "suscipit"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a service agreement.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/service-agreements/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"repudiandae\",
\"content\": \"in\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/service-agreements/1';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'repudiandae',
'content' => 'in',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/service-agreements/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "repudiandae",
"content": "in"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch - Set as Active
requires authentication
Set as Active a service agreement version.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/service-agreements/1/setAsActive" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"et\",
\"content\": \"ea\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/service-agreements/1/setAsActive';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'et',
'content' => 'ea',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/service-agreements/1/setAsActive"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "et",
"content": "ea"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a service agreement.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/service-agreements/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/service-agreements/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://api.smarterlaunch.com/api/v1/companies/1/service-agreements/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Company
API for company details
PATCH api/v1/companies/{company_uuid}/update-limit/{entity}
requires authentication
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/update-limit/porro" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/update-limit/porro';
$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://api.smarterlaunch.com/api/v1/companies/1/update-limit/porro"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List / Fetch.
requires authentication
Shows the list of company or fetch single record using uuid.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/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://api.smarterlaunch.com/api/v1/companies/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store company logo.
requires authentication
This endpoint lets company to upload or update their logo.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/image" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "image_url=@/tmp/phpNmt0Zi"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/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/phpNmt0Zi', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Company
requires authentication
This endpoint lets user to update a company.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1" \
--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\": \"https:\\/\\/christiansen.com\\/sapiente-aliquid-voluptas-facilis-adipisci-sequi.html\",
\"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://api.smarterlaunch.com/api/v1/companies/1';
$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' => 'https://christiansen.com/sapiente-aliquid-voluptas-facilis-adipisci-sequi.html',
'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://api.smarterlaunch.com/api/v1/companies/1"
);
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": "https:\/\/christiansen.com\/sapiente-aliquid-voluptas-facilis-adipisci-sequi.html",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch Company
requires authentication
This endpoint lets user to update a company.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1" \
--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\": \"http:\\/\\/kirlin.org\\/molestiae-voluptas-excepturi-nihil-corrupti\",
\"google_my_business_listing\": \"http:\\/\\/muller.com\\/aliquam-itaque-a-molestiae-quo-consequatur-voluptatem-commodi.html\",
\"image_url\": \"http:\\/\\/stokes.biz\\/temporibus-est-labore-eos-expedita\",
\"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://api.smarterlaunch.com/api/v1/companies/1';
$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' => 'http://kirlin.org/molestiae-voluptas-excepturi-nihil-corrupti',
'google_my_business_listing' => 'http://muller.com/aliquam-itaque-a-molestiae-quo-consequatur-voluptatem-commodi.html',
'image_url' => 'http://stokes.biz/temporibus-est-labore-eos-expedita',
'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://api.smarterlaunch.com/api/v1/companies/1"
);
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": "http:\/\/kirlin.org\/molestiae-voluptas-excepturi-nihil-corrupti",
"google_my_business_listing": "http:\/\/muller.com\/aliquam-itaque-a-molestiae-quo-consequatur-voluptatem-commodi.html",
"image_url": "http:\/\/stokes.biz\/temporibus-est-labore-eos-expedita",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove company logo.
requires authentication
Only self can remove his logo.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/logo" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/logo';
$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://api.smarterlaunch.com/api/v1/companies/logo"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Redirect to Stripe Billing Auth
requires authentication
This endpoint lets user to redirect to Stripe Billing Auth.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/billing" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/billing"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get settings JSON file URL
requires authentication
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/settings-json" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"settings_name\": \"quibusdam\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/settings-json';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'settings_name' => 'quibusdam',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/settings-json"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"settings_name": "quibusdam"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST Upload Base64 files to S3
requires authentication
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Customer Address
API for customer address
Update
requires authentication
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/customers/3245d634-24fd-11ec-accd-e397aec85c7f/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://api.smarterlaunch.com/api/v1/customers/3245d634-24fd-11ec-accd-e397aec85c7f/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://api.smarterlaunch.com/api/v1/customers/3245d634-24fd-11ec-accd-e397aec85c7f/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch Customer Address
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/customers/1/customer-addresses/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"address1\": \"minima\",
\"address2\": \"dolores\",
\"city\": \"animi\",
\"country_state_uuid\": \"ac338032-9304-3cab-88e5-a78b05288343\",
\"country_uuid\": \"4326b6cd-3899-386b-887f-debe8941f29c\",
\"postal_code\": \"libero\",
\"latitude\": \"exercitationem\",
\"longitude\": \"cupiditate\",
\"is_primary\": \"quo\",
\"settings\": \"quia\",
\"county\": \"non\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/customers/1/customer-addresses/1';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'address1' => 'minima',
'address2' => 'dolores',
'city' => 'animi',
'country_state_uuid' => 'ac338032-9304-3cab-88e5-a78b05288343',
'country_uuid' => '4326b6cd-3899-386b-887f-debe8941f29c',
'postal_code' => 'libero',
'latitude' => 'exercitationem',
'longitude' => 'cupiditate',
'is_primary' => 'quo',
'settings' => 'quia',
'county' => 'non',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/customers/1/customer-addresses/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"address1": "minima",
"address2": "dolores",
"city": "animi",
"country_state_uuid": "ac338032-9304-3cab-88e5-a78b05288343",
"country_uuid": "4326b6cd-3899-386b-887f-debe8941f29c",
"postal_code": "libero",
"latitude": "exercitationem",
"longitude": "cupiditate",
"is_primary": "quo",
"settings": "quia",
"county": "non"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Integration Data
requires authentication
Get data from a 3rd party API
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/customers/3245d634-24fd-11ec-accd-e397aec85c7f/customer-addresses/1/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://api.smarterlaunch.com/api/v1/customers/3245d634-24fd-11ec-accd-e397aec85c7f/customer-addresses/1/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://api.smarterlaunch.com/api/v1/customers/3245d634-24fd-11ec-accd-e397aec85c7f/customer-addresses/1/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Service Plan Pricing Group
API for Service Plan Pricing Group
List
requires authentication
Shows the list of Service Plan Pricing Group with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/service-plans/2/pricing-groups" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/service-plans/2/pricing-groups';
$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://api.smarterlaunch.com/api/v1/service-plans/2/pricing-groups"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create
requires authentication
Store a newly created Service Plan Pricing Group.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/service-plans/2/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://api.smarterlaunch.com/api/v1/service-plans/2/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://api.smarterlaunch.com/api/v1/service-plans/2/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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://api.smarterlaunch.com/api/v1/service-plans/2/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_ACTIVE\",
\"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://api.smarterlaunch.com/api/v1/service-plans/2/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_ACTIVE',
'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://api.smarterlaunch.com/api/v1/service-plans/2/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_ACTIVE",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get
requires authentication
Display the specified Service Plan Pricing Group.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/service-plans/2/pricing-groups/da545eaf-ab1b-342d-a754-89ddbfc7d460" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/service-plans/2/pricing-groups/da545eaf-ab1b-342d-a754-89ddbfc7d460';
$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://api.smarterlaunch.com/api/v1/service-plans/2/pricing-groups/da545eaf-ab1b-342d-a754-89ddbfc7d460"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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://api.smarterlaunch.com/api/v1/service-plans/2/pricing-groups/f104da00-e824-3cb9-b5da-c255950b39cf" \
--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://api.smarterlaunch.com/api/v1/service-plans/2/pricing-groups/f104da00-e824-3cb9-b5da-c255950b39cf';
$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://api.smarterlaunch.com/api/v1/service-plans/2/pricing-groups/f104da00-e824-3cb9-b5da-c255950b39cf"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Perform patches for the specified Service Plan Pricing Group.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/service-plans/2/pricing-groups/fd7fbad4-c2c0-356a-a897-3a3cfa209300" \
--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://api.smarterlaunch.com/api/v1/service-plans/2/pricing-groups/fd7fbad4-c2c0-356a-a897-3a3cfa209300';
$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://api.smarterlaunch.com/api/v1/service-plans/2/pricing-groups/fd7fbad4-c2c0-356a-a897-3a3cfa209300"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Remove the specified Service Plan Pricing Group.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/service-plans/2/pricing-groups/d52afcbd-a48a-3329-adba-1501b834945d" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/service-plans/2/pricing-groups/d52afcbd-a48a-3329-adba-1501b834945d';
$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://api.smarterlaunch.com/api/v1/service-plans/2/pricing-groups/d52afcbd-a48a-3329-adba-1501b834945d"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Report
API for report related data
GET api/v1/reports/types
requires authentication
Example request:
curl --request GET \
--get "https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List
requires authentication
Returns the list of available reports
Example request:
curl --request GET \
--get "https://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://api.smarterlaunch.com/api/v1/reports';
$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://api.smarterlaunch.com/api/v1/reports"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a newly created report.
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Duplicate
requires authentication
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/reports/1/duplicate" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/reports/1/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://api.smarterlaunch.com/api/v1/reports/1/duplicate"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show admin overview report.
Example request:
curl --request GET \
--get "https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single report.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/reports/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/reports/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://api.smarterlaunch.com/api/v1/reports/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export
requires authentication
Export summary reports
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/reports/1/export" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/reports/1/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://api.smarterlaunch.com/api/v1/reports/1/export"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Filters
requires authentication
Retrieve filters to be used in frontend processes
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/reports/1/filters" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/reports/1/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://api.smarterlaunch.com/api/v1/reports/1/filters"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/reports/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/reports/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://api.smarterlaunch.com/api/v1/reports/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
ImportSet
API for ImportSet
Apply Import Set to Company
requires authentication
Store a newly created import set.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/import-defaults" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"tags\": [
\"ad\"
],
\"import_files\": \"qui\",
\"override\": false,
\"admin_only\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/import-defaults';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'tags' => [
'ad',
],
'import_files' => 'qui',
'override' => false,
'admin_only' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/import-defaults"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"tags": [
"ad"
],
"import_files": "qui",
"override": false,
"admin_only": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Apply Import Set to Company
requires authentication
Store a newly created import set.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/import-defaults/upload" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"tags\": [
\"mollitia\"
],
\"import_files\": \"officiis\",
\"override\": true,
\"admin_only\": false
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/import-defaults/upload';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'tags' => [
'mollitia',
],
'import_files' => 'officiis',
'override' => true,
'admin_only' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/import-defaults/upload"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"tags": [
"mollitia"
],
"import_files": "officiis",
"override": true,
"admin_only": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List
requires authentication
Shows the list of import set with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/import-sets" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/import-sets';
$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://api.smarterlaunch.com/api/v1/import-sets"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single import set.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/import-sets/23" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/import-sets/23';
$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://api.smarterlaunch.com/api/v1/import-sets/23"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Download
requires authentication
Download a single import set.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/import-sets/23/download" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/import-sets/23/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://api.smarterlaunch.com/api/v1/import-sets/23/download"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a newly created import set.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/import-sets" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"tags\": [
\"praesentium\"
],
\"import_files\": \"ea\",
\"override\": true,
\"admin_only\": false
}"
$client = new \GuzzleHttp\Client();
$url = 'https://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' => [
'praesentium',
],
'import_files' => 'ea',
'override' => true,
'admin_only' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/import-sets"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"tags": [
"praesentium"
],
"import_files": "ea",
"override": true,
"admin_only": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a import set.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/import-sets/23" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"import_files\": \"rerum\",
\"admin_only\": true,
\"is_selected\": false
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/import-sets/23';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'import_files' => 'rerum',
'admin_only' => true,
'is_selected' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/import-sets/23"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"import_files": "rerum",
"admin_only": true,
"is_selected": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
requires authentication
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/import-sets/23" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"admin_only\": true,
\"is_selected\": false
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/import-sets/23';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'admin_only' => true,
'is_selected' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/import-sets/23"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"admin_only": true,
"is_selected": false
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a import set.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/import-sets/23" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/import-sets/23';
$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://api.smarterlaunch.com/api/v1/import-sets/23"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List Forms
requires authentication
Shows the list of import set with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/form-import-sets" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://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',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/form-import-sets"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Apply Import Set to Company
requires authentication
Store a newly created import set.
Example request:
curl --request POST \
"https://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\": [
\"asperiores\"
],
\"import_files\": \"animi\",
\"override\": true,
\"admin_only\": false
}"
$client = new \GuzzleHttp\Client();
$url = 'https://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' => [
'asperiores',
],
'import_files' => 'animi',
'override' => true,
'admin_only' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://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": [
"asperiores"
],
"import_files": "animi",
"override": true,
"admin_only": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Form
API for Form
List
requires authentication
Shows the list of form with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/forms" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/forms';
$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://api.smarterlaunch.com/api/v1/companies/1/forms"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get form types
requires authentication
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/form-types" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single form.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/forms/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/forms/2';
$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://api.smarterlaunch.com/api/v1/companies/1/forms/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a newly created form.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/forms" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"nihil\",
\"assignment\": \"voluptatem\",
\"form_fields\": [
\"ut\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/forms';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'nihil',
'assignment' => 'voluptatem',
'form_fields' => [
'ut',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/forms"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "nihil",
"assignment": "voluptatem",
"form_fields": [
"ut"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Duplicate
requires authentication
Duplicate form
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/forms/2/duplicate" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/forms/2/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://api.smarterlaunch.com/api/v1/companies/1/forms/2/duplicate"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a form.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/forms/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"sit\",
\"assignment\": \"et\",
\"form_fields\": [
\"cumque\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/forms/2';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'sit',
'assignment' => 'et',
'form_fields' => [
'cumque',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/forms/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "sit",
"assignment": "et",
"form_fields": [
"cumque"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a form.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/forms/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"sint\",
\"assignment\": \"vero\",
\"form_fields\": [
\"incidunt\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/forms/2';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'sint',
'assignment' => 'vero',
'form_fields' => [
'incidunt',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/forms/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "sint",
"assignment": "vero",
"form_fields": [
"incidunt"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a company form.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/forms/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"ipsam\",
\"assignment\": \"ut\",
\"form_fields\": [
\"tempore\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/forms/2';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'ipsam',
'assignment' => 'ut',
'form_fields' => [
'tempore',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/forms/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "ipsam",
"assignment": "ut",
"form_fields": [
"tempore"
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a form.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/forms/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/forms/2';
$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://api.smarterlaunch.com/api/v1/companies/1/forms/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Description Set
API for Description Set
List
requires authentication
Shows the list of description set with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/description-sets" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/description-sets';
$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://api.smarterlaunch.com/api/v1/companies/1/description-sets"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single description set.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/description-sets/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/description-sets/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://api.smarterlaunch.com/api/v1/companies/1/description-sets/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a newly created description set.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/description-sets" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"reprehenderit\",
\"options\": [
\"laborum\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/description-sets';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'reprehenderit',
'options' => [
'laborum',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/description-sets"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "reprehenderit",
"options": [
"laborum"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a description set.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/description-sets/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"voluptatem\",
\"options\": [
\"et\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/description-sets/1';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'voluptatem',
'options' => [
'et',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/description-sets/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "voluptatem",
"options": [
"et"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a company description set.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/description-sets/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"eum\",
\"options\": [
\"maiores\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/description-sets/1';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'eum',
'options' => [
'maiores',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/description-sets/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "eum",
"options": [
"maiores"
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a description set.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/description-sets/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/description-sets/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://api.smarterlaunch.com/api/v1/companies/1/description-sets/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Home
Index
requires authentication
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1';
$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://api.smarterlaunch.com/api/v1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Referral Source
API for Referral Source
List
requires authentication
Shows the list of referral sources.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/referral-sources" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/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://api.smarterlaunch.com/api/v1/companies/1/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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single referral source.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/referral-sources/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/referral-sources/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://api.smarterlaunch.com/api/v1/companies/1/referral-sources/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a newly created referral source.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/referral-sources" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"sunt\",
\"description\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\",
\"integration_source_id\": \"1234263\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/referral-sources';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'sunt',
'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://api.smarterlaunch.com/api/v1/companies/1/referral-sources"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "sunt",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a referral source.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/referral-sources/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"saepe\",
\"description\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\",
\"integration_source_id\": \"1234263\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/referral-sources/1';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'saepe',
'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://api.smarterlaunch.com/api/v1/companies/1/referral-sources/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "saepe",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a company referral source.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/referral-sources/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"eos\",
\"description\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\",
\"integration_source_id\": \"1234263\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/referral-sources/1';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'eos',
'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://api.smarterlaunch.com/api/v1/companies/1/referral-sources/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "eos",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a referral source.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/referral-sources/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/referral-sources/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://api.smarterlaunch.com/api/v1/companies/1/referral-sources/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Solution
API for Solution
List
requires authentication
Shows the list of solutions.
Example request:
curl --request GET \
--get "https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single solution.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/solutions/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/solutions/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://api.smarterlaunch.com/api/v1/solutions/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a new solution.
Example request:
curl --request POST \
"https://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\": \"5bc9c0fd-2554-37f4-ab41-4b313954cf0d\",
\"name\": \"harum\",
\"slug\": \"solution-1\",
\"description\": \"\\\"Lorem ipsum dolor sit amet consectetur adipisicing elit.\\\"\",
\"video_url\": \"\\\"https::somevideo.com\\/thevideoforpestroutes\\\"\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://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' => '5bc9c0fd-2554-37f4-ab41-4b313954cf0d',
'name' => 'harum',
'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://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": "5bc9c0fd-2554-37f4-ab41-4b313954cf0d",
"name": "harum",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store Image
requires authentication
Upload an image to solution
Example request:
curl --request POST \
"https://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/phpEHiZ1e"
$client = new \GuzzleHttp\Client();
$url = 'https://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/phpEHiZ1e', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a solution.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/solutions/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"solution_category_uuid\": \"97fdcb12-493e-3db6-b086-3125510b9e77\",
\"name\": \"molestiae\",
\"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://api.smarterlaunch.com/api/v1/solutions/1';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'solution_category_uuid' => '97fdcb12-493e-3db6-b086-3125510b9e77',
'name' => 'molestiae',
'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://api.smarterlaunch.com/api/v1/solutions/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"solution_category_uuid": "97fdcb12-493e-3db6-b086-3125510b9e77",
"name": "molestiae",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reset
requires authentication
Reset a solution's user progress.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/solutions/1/reset" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/solutions/1/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://api.smarterlaunch.com/api/v1/solutions/1/reset"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update user progress
requires authentication
Update user progress.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/solutions/1/user-progress" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"is_completed\": false,
\"step\": []
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/solutions/1/user-progress';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'is_completed' => false,
'step' => [],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/solutions/1/user-progress"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"is_completed": false,
"step": []
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch Index
requires authentication
Performs specific updates for solutions
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/solutions/1/sort" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/solutions/1/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://api.smarterlaunch.com/api/v1/solutions/1/sort"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a solution.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/solutions/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"solution_category_uuid\": \"81b34862-55c7-3e80-8f66-f674dd2f1223\",
\"name\": \"sunt\",
\"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://api.smarterlaunch.com/api/v1/solutions/1';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'solution_category_uuid' => '81b34862-55c7-3e80-8f66-f674dd2f1223',
'name' => 'sunt',
'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://api.smarterlaunch.com/api/v1/solutions/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"solution_category_uuid": "81b34862-55c7-3e80-8f66-f674dd2f1223",
"name": "sunt",
"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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a solution.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/solutions/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/solutions/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://api.smarterlaunch.com/api/v1/solutions/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Customer
API for customers
List
requires authentication
Shows the list of company customers that the user has access to view.
Example request:
curl --request GET \
--get "https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
This endpoint returns detail of a certain customer.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/customers/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/customers/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://api.smarterlaunch.com/api/v1/customers/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Create a new customer along with their primary contact and address
Example request:
curl --request POST \
"https://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\": [
\"saepe\"
],
\"customer_address\": [
\"dolorum\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://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' => [
'saepe',
],
'customer_address' => [
'dolorum',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://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": [
"saepe"
],
"customer_address": [
"dolorum"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update with contact and address
requires authentication
This is to update those partial customer data
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/customers/1/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\": [
\"numquam\"
],
\"customer_address\": [
\"excepturi\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/customers/1/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' => [
'numquam',
],
'customer_address' => [
'excepturi',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/customers/1/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": [
"numquam"
],
"customer_address": [
"excepturi"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update individual customer account name and the location they are associated with.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/customers/3245d634-24fd-11ec-accd-e397aec85c7f" \
--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://api.smarterlaunch.com/api/v1/customers/3245d634-24fd-11ec-accd-e397aec85c7f';
$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://api.smarterlaunch.com/api/v1/customers/3245d634-24fd-11ec-accd-e397aec85c7f"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch individual customer account name and the location they are associated with.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/customers/3245d634-24fd-11ec-accd-e397aec85c7f" \
--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://api.smarterlaunch.com/api/v1/customers/3245d634-24fd-11ec-accd-e397aec85c7f';
$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://api.smarterlaunch.com/api/v1/customers/3245d634-24fd-11ec-accd-e397aec85c7f"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
This end point allows user the delete the customer.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/customers/1" \
--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://api.smarterlaunch.com/api/v1/customers/1';
$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://api.smarterlaunch.com/api/v1/customers/1"
);
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Sync
requires authentication
This endpoint allows user to perform manual sync to a customer
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/customers/1/sync" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/customers/1/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://api.smarterlaunch.com/api/v1/customers/1/sync"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fetch all available industry
requires authentication
Example request:
curl --request GET \
--get "https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Category
API for Category
List
requires authentication
Shows the list of Categories with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/categories" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/categories';
$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://api.smarterlaunch.com/api/v1/categories"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create
requires authentication
Store a newly created Category.
Example request:
curl --request POST \
"https://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://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://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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get
requires authentication
Display the specified Category.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/categories/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/categories/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://api.smarterlaunch.com/api/v1/categories/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Modify the specified Category.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/categories/1" \
--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://api.smarterlaunch.com/api/v1/categories/1';
$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' => 'SERVICE_PLAN',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/categories/1"
);
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: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Perform patches for the specified Category.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/categories/1" \
--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://api.smarterlaunch.com/api/v1/categories/1';
$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' => 'DRAWING_SYMBOL',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/categories/1"
);
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: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Remove the specified Category.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/categories/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/categories/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://api.smarterlaunch.com/api/v1/categories/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Schedule
API for Schedule
List
requires authentication
Shows the list of schedule with pagination.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/schedules" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/schedules';
$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://api.smarterlaunch.com/api/v1/companies/1/schedules"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a single schedule.
Example request:
curl --request GET \
--get "https://api.smarterlaunch.com/api/v1/companies/1/schedules/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/schedules/2';
$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://api.smarterlaunch.com/api/v1/companies/1/schedules/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store
requires authentication
Store a newly created schedule.
Example request:
curl --request POST \
"https://api.smarterlaunch.com/api/v1/companies/1/schedules" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"qui\",
\"description\": \"Est rerum suscipit labore consequatur esse rerum voluptas.\",
\"type\": \"delectus\",
\"units\": 7,
\"term\": \"omnis\",
\"enabled_service_months\": [
\"numquam\"
],
\"visits\": 5
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/schedules';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'qui',
'description' => 'Est rerum suscipit labore consequatur esse rerum voluptas.',
'type' => 'delectus',
'units' => 7,
'term' => 'omnis',
'enabled_service_months' => [
'numquam',
],
'visits' => 5,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/schedules"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "qui",
"description": "Est rerum suscipit labore consequatur esse rerum voluptas.",
"type": "delectus",
"units": 7,
"term": "omnis",
"enabled_service_months": [
"numquam"
],
"visits": 5
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a schedule.
Example request:
curl --request PUT \
"https://api.smarterlaunch.com/api/v1/companies/1/schedules/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"dolor\",
\"description\": \"Veritatis non nulla dolores suscipit sint.\",
\"type\": \"et\",
\"units\": 15,
\"term\": \"quo\",
\"enabled_service_months\": [
\"magni\"
],
\"visits\": 2
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/schedules/2';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'dolor',
'description' => 'Veritatis non nulla dolores suscipit sint.',
'type' => 'et',
'units' => 15,
'term' => 'quo',
'enabled_service_months' => [
'magni',
],
'visits' => 2,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/schedules/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "dolor",
"description": "Veritatis non nulla dolores suscipit sint.",
"type": "et",
"units": 15,
"term": "quo",
"enabled_service_months": [
"magni"
],
"visits": 2
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Patch
requires authentication
Patch a company schedule.
Example request:
curl --request PATCH \
"https://api.smarterlaunch.com/api/v1/companies/1/schedules/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"nam\",
\"description\": \"Dolores nihil saepe rerum vel error cupiditate qui.\",
\"type\": \"nesciunt\",
\"units\": 4,
\"term\": \"placeat\",
\"enabled_service_months\": [
\"odio\"
],
\"visits\": 3
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/schedules/2';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'nam',
'description' => 'Dolores nihil saepe rerum vel error cupiditate qui.',
'type' => 'nesciunt',
'units' => 4,
'term' => 'placeat',
'enabled_service_months' => [
'odio',
],
'visits' => 3,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://api.smarterlaunch.com/api/v1/companies/1/schedules/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "nam",
"description": "Dolores nihil saepe rerum vel error cupiditate qui.",
"type": "nesciunt",
"units": 4,
"term": "placeat",
"enabled_service_months": [
"odio"
],
"visits": 3
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a schedule.
Example request:
curl --request DELETE \
"https://api.smarterlaunch.com/api/v1/companies/1/schedules/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.smarterlaunch.com/api/v1/companies/1/schedules/2';
$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://api.smarterlaunch.com/api/v1/companies/1/schedules/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.