Skip to main content

Authorization


In order to authenticate requests, an API key should be included in the header of requests to the Create API. The API key is a unique identifier that differs depending on the API environment.

Example of a cURL command with an API key as a header for the sandbox environment:

  curl -X PUT ^
"https://sandbox-api.donary.com/V1/External/SaveCampaign" ^
-H "APIKey: DN-DzzUweiGMIXEgcTz934Fb9nuINl1ttqfHCiqhgXH1PCDAPb" ^
-H "Content-Type: application/json" ^
-d "{\"OrgGUID\": \"115e9d3d-baf2-4089-b896-9b2621ffcf1b\", \"CampaignNumber\": 0, \"CampaignName\": \"Gold Page\", \"CampaignFriendlyName\": \"Request Donation / Gold Page\"}"

Sandbox

Token:

Use the following token for development purposes only. It grants access to the sandbox environment of the Donary Create API.

DN-DzzUweiGMIXEgcTz934Fb9nuINl1ttqfHCiqhgXH1PCDAPb

Production

Once development has been implemented and tested, please email integrations@donary.org to receive a unique token for production.