Authentication
For most use cases we suggest using the client_credentials grant type to authenticate. When using the client_credentials grant type you will only be allowed to request the id_status scope which allows you to check the status of an SBiD Account. For more information around how to initiate the client credential auth flow please consult the official OAuth2 documentation at https://tools.ietf.org/html/rfc6749 In order to get started you will need to obtain an application id and application secret. Please get in touch with hello@studentbeans.com . We have a default TTL for our tokens of 2 hours (or 7200 seconds).API Domain
https://accounts.studentbeans.com/
Authorise Endpoint
If you need to get a bearer token please use the below endpoint to request your token/oauth/authorize
Token Endpoint
If you have a bearer token or if you are using client_credentials, please use the below endpoint to get a token/oauth/token
Status endpoint
All status requests have to be made to:/api/v1/id/code/status.json
NOTEWe currently only support the JSON mime type
Single SBiD code status
[GET] Request Parameters
| Parameter | Type | Description |
|---|---|---|
| access_token | string | access token returned from the /oauth/token endpoint |
| id_code | string | Student Beans SBiD code of the user |
NOTEHTTP method is GET so these need to be send in the query string
Response
Batch SBiD codes status
By using the batch method you can process a greater volume of SBiDs without constantly running into your rate limit. The max batch size is currently set at 1000.[POST] Request Parameters
| Parameter | Type | Description |
|---|---|---|
| access_token | string | access token returned from the /oauth/token endpoint |
| id_codes | string | Comma seperated list of Student Beans SBiD codes |
NOTEHTTP method is POST so these need to be send in the form data