The Spruce Media API is available for use by select partners who receive an API Key from the Spruce team only. If you're interested in leveraging the Spruce Media API to quickly and easily provide scalable performance advertising on Facebook to your customers and/or within your product, please contact us. Getting Started- Contact your Spruce representative to get your own Spruce Api Key and partner_id values.
- If you'd like Spruce to accept API requests on your behalf from a whitelist of public IP addresses you own (optional, but recommended), send a listing of those IP address to your Spruce representative (your IT administrator can provide you this information).
API OverviewThe API is implemented as a RESTful web service, with the following aspects: | Base URI | Production site URL: https://api.sprucemedia.com/
External site URL: https://apix.sprucemedia.com/
Sandbox site URL: https://api-p.sprucemedia.com NOTE: requests sent to the Sandbox site are for testing purposes only - data sent to the site is ignored, and statistical data (if any) is completely mocked / false. | | Media Type(s) | JSON | | Operations (HTTP Verbs) | GET, PUT, POST, DELETE |
Each operation behaves generally as follows - support for each operation may be dependent on the collection being referenced:
| Resource | PUT | POST | DELETE | Collection URI's, i.e.: https://api.sprucemedia.com/advertisers/ | CREATE a new entry | CREATE a new entry | N/A | Element URI's, i.e.: https://api.sprucemedia.com/advertisers/123/ | REPLACE the entry (a wholesale replace) | CREATE a new entry within the entry (if supported) | DELETE the entry |
Each call made to the API will have to be signed.
API Resources |
|