API Authentication

The API Authentication is implemented as HTTP Basic Authentication over SSL (HTTPS). Your API login credentials are not the same as the credentials you use to log in to the web interface. You must obtain your API credentials separately.

Obtaining Your API Credentials

Your API key can be generated from the "API Access" tab of your seller dashboard.

_Chargify__Acme__Inc.___API_Access_2.png

_Chargify__Acme__Inc.___API_Access.png

Your http username is your "API Key".

Your password is always the letter "x".

Authenticating with your API Credentials

You will use HTTP Basic Authentication to verify your identify via the API. All requests must come over SSL/HTTPS, and be to your subdomain. i.e.

https://subdomain.chargify.com/customers.xml

An example using authentication via curl:

curl -u api-key:x https://subdomain.chargify.com/customers.xml

or

curl -i https://<api-key>:x@subdomain.chargify.com/customers.xml

Please review the recommendations for setting your HTTP Accept and Content-Type headers as outlined in the API User Guide section on Request Data