Developer API

For agencies on the Enterprise plan we offer an API which allows external scripts and software to programmatically make changes to your SPP account.

By combining the API with webhooks you can develop advanced custom functionality and workflows on top of what SPP already has.

We’re still in progress of adding new endpoints to the API so the best place to find the latest documentation is in our repository here. You can also copy our Postman collection directly from here.

PHP Example

We recommend using Guzzle which you can install via Composer.

<?php
 require 'vendor/autoload.php';

 $guzzle = new GuzzleHttp\Client([
     'base_uri' => 'https://username.spp.io/api/v1/',
     'auth' => ['spp_api_xxx', null],
 ]);

 try {
     $request = $guzzle->request('GET', 'clients', [
         'query' => [
             'limit' => 3,
         ]
     ]);

     $data = json_decode($request->getBody());

     // Do something with the response data
     var_dump($data);

 } catch (Exception $e) {
     // Handle request exception
 }