Authentication
The API uses API keys to authenticate requests. Provide your secret key as a bearer token.
curl https://api.thestudentguarantor.com/v1/applications \
-H "Authorization: Bearer tsg_test_sk_4f9c…"
Secret keys carry full access to your account. Keep them on your server and don't expose them in client-side code. Client-side code uses a session's client_secret instead.
All requests must be made over HTTPS. Calls made over plain HTTP fail. Requests without a valid key return 401.
You can have two active keys per environment, which lets you rotate keys without downtime. You can restrict a production key to a list of source IP addresses.