Authorization
Kobble Authorization API
Overview
Base URLs
https://dev.apikobble.net/
https://stage.apikobble.net/
Endpoint
oauth2/token
POST
application/x-www-form-urlencoded
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
grant_type | string | Yes | OAuth 2.0 grant type. Must be client_credentials . |
client_id | string | Yes | The client identifier issued during registration. |
client_secret | string | Yes | The secret key associated with the client. |
scope | string | Yes | The access scope. Options are: |
- client/read | |||
- client/write | |||
- administrator/read | |||
- administrator/write |
Sample Request
Sample Response
Authorization API Notes and Error Codes
Notes
1.
access_token
is a JWT used to authenticate subsequent API requests.2.
expires_in
field (in seconds). A new token must be requested once it expires.3.
scope
determines the level of access granted. Use the following based on your needs:client/read
administrator/read
client/write
administrator/write
4.
client_secret
secure and never expose it in your application code or client-side scripts.Error Codes
Status Code | Description |
---|---|
400 | Bad Request - Invalid parameters or missing data. |
401 | Unauthorized - Invalid credentials or token. |
403 | Forbidden - The client is not allowed access to the requested resource. |
500 | Internal Server Error - An issue occurred on the server. |