Developer API

For agencies on the Plus 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.

To get an overview of our API and all the available endpoints, visit our API documentation.

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
 }