Authentication

There are currently 2 ways to authenticate through the Stormboard v1 API, and a 3rd (OAuth 2.0) arriving soon. All requests that require authentication will return 403 Forbidden if your auth fails.

HTTP Basic Auth

Uses your Stormboard username and password to authenticate each call to the API. This authentication method may be removed in the near future.

      $header = array();
      $header[] = 'Authentication: Basic '.base64_encode("user:password");

      $ch = curl_init("https://api.stormboard.com/users");
      curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

      $response = curl_exec ($ch);

      curl_close ($ch);
    

API Key

Your API key can be found on the API tab of your Stormboard account. Use this link: https://www.stormboard.com/users/account#api

      $header = array();
      $header[] = 'X-API-Key: '.$api_key;

      $ch = curl_init("https://api.stormboard.com/users");
      curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

      $response = curl_exec ($ch);

      curl_close ($ch);
    

OAuth 2.0

In labs and will be implemented shortly. Documentation to follow.