Usage
Overview
MioCreate Open API uses API keys for authentication. Get your API token from our API interfaces.
- First, you need to login to our website.
- Then, click the “APl Credentials” below avatar to set the key pair (clientId, clientSecret) used when accessing the API and save it.
- Use the secret key pair just saved to send the api interface to obtain the access token.
Get access token
Get the token to access api.
Body Attributes application/json
Parameter | Type | Required | Description |
---|---|---|---|
client_id | string | true | Used for request authorization |
client_secret | string | true | Used for request authorization |
Response Attributes
Parameter | Type | Description |
---|---|---|
access_token | string | API access token for request authorization |
expires_in | int | The token expires after a certain number of seconds |
Response Code Description
Parameter | Type | Description |
---|---|---|
code | 200 | Success |
code | 400 | Request parameter error |
code | 401 | Authorization failed(e.g. The token is invalid or expired) |
code | 500 | Server exception occurred |
Example
Request
Response
All API requests should include your API token in the HTTP header, Authorization looks like this:
Remember, your API token is secret! Do not share it with others or expose it in any client-side code (browser, application). Production requests must be routed through your own backend server, and your API token can be securely loaded from environment variables or a key management service.