This API provides basic functionality for Keeta platform integration, including webhook configuration, authorization management, and OAuth token operations.
Keeta Basic API Reference (v.1.0.0)
https://open.mykeeta.com/api/open/
The webhook URL provided by developers where Keeta system will send notifications
https://open.mykeeta.com/api/open/base/callback/url/set
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open.mykeeta.com/api/open/base/callback/url/set \
-H 'Content-Type: application/json' \
-d '{
"eventId": 1001,
"url": "https://open.mykeeta.com/api/open/base/image/upload",
"isTest": 1
}'
Webhook URL configuration result.
A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.
Enum Value | Description |
---|---|
0 | The request was executed successfully. |
Non-zero value | The request execution failed. Specific error details can be viewed in the message field. |
{ "code": 0, "message": "Success" }
Request
This endpoint handles both access token acquisition and token refresh operations based on the grantType parameter.
For Access Token Acquisition (grantType = "authorization_code"): This endpoint enables developers to acquire access token from Keeta.
For Token Refresh (grantType = "refresh_token"): This endpoint enables developers to refresh access token validity period from Keeta platform.
Result of the sig calculation
This field represents the mode of the authorization code, and its value should be fixed as "authorization_code".
https://open.mykeeta.com/api/open/base/oauth/token
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open.mykeeta.com/api/open/base/oauth/token \
-H 'Content-Type: application/json' \
-d '{
"appId": 3340612437,
"timestamp": 1740151097,
"sig": "7713bf15971faf402341bd0a372af7af5d788c25a8b08d7f238314b43a46f768",
"grantType": "authorization_code",
"code": "885000242"
}'
OAuth token operation result.
The access token serves as the primary credential for authenticating API requests.
This field specifies the type of token issued, with the fixed value "bearer" indicating that the token is a bearer token.
The expiration period of the access token, measured in seconds. Tokens remain valid for precisely 90 days (7,776,000 seconds)
A credential used to obtain new access tokens when the current token nears expiration. Each refresh token may only be used once and becomes invalid immediately after use. The system automatically issues a new refresh token with each access token refresh.
Defines the permissions granted to the token, corresponding to the scopes requested by the client application. The default value "all" grants complete access.
{ "accessToken": "911b56fbc7c14ef397261f5efd1d1b99", "tokenType": "bearer", "expiresIn": 7776000, "refreshToken": "q11bd86271e844cca7dbc139bb3f00f7", "scope": "all", "issuedAtTime": 1740151097721 }