All requests should include a 'Authorization' header with an API key which will be provided.
Headers['Authorization'] = "Token token=abcabcabc"
If you don't have a token, email zack@magoosh.com to get one!
All responses will be provided in JSON format.
API testing can be done on the development server. Swap out the gmat.magoosh.com
portion of the
API endpoint with gmat.preview.magoosh.com
. Any actions performed on the preview
endpoint will
NOT change production information.
GET
: https://gre.magoosh.com/api/users/add?email=test@test.com&password=gmat&password_confirmation=gmat
Parameters:
email
: (required) the student's account email.password
: (required) the student's account password.
Note: special characters in the email must be URL encoded. zack+1@magoosh.com is not work properly. It would need to be formated like: zack%2B1@magoosh.com
Another note: sometimes, when we think the email might have a typo, like in hello@gmaul.com, we may deny the account creation, and in that case the user would either have to correct the typo or just try a second time
Successful response:
nothing will be returned except for a 201
created HTTP status