Get API Schema
Retrieves the API schema info of a Kintone API.
The following APIs' schema information cannot be retrieved:
- Get API List
- Get API Schema (this API)
| Method | GET |
|---|---|
| URL | https://{subdomain}.kintone.com/k/v1/apis/{API_ID}.json |
| Authentication | Not required |
| Content-Type |
Contents
Permissions
None
Path Parameters
| Parameter | Description |
|---|---|
| API_ID | The ID of the API to retrieve schema information for. This ID is the key name of the apis object from the Get API List API.Get API List For example, for the Get Record API ( /k/v1/record.json [GET]), the key name is record/get, and the URL path would be https://{subdomain}.kintone.com/k/v1/apis/record/get.json. |
Request Parameters
None
Sample Request
JavaScript using kintone.api()
|
|
XMLHttpRequest
|
|
Response Parameters
When the Space, People, and Guest Space features are disabled, the schema information for those APIs can still be retrieved.
| Parameter | Type | Description |
|---|---|---|
| id | String | The ID of the API. This can be obtained from the apis.(key) responded from the Get API List API. |
| baseUrl | String | The base URL starting with "https://" that will be used with the API. |
| path | String | The API path, such as records.json.The baseURL + path will become the URL of the API. |
| httpMethod | String | The HTTP method for the API |
| request | Object | The schema information for the API request, in a JSON Schema format. |
| response | Object | The schema information for the API response, in a JSON Schema format. |
| schemas | Object | The schema information common to all APIs. The property name represents the string of the Schema information, which is referenced in the $ref key. |
Sample Response
|
|
About JSON Schemas
The above JSON Schema used for request, response and schemas follows draft v4. core and validation are used, but hyper schema is not used.
-
core definitions and terminology draft-zyp-json-schema-04
-
interactive and non interactive validation draft-fge-json-schema-validation-00
type and format
To represent the limits used for the parameters of Kintone, the below formats are used in addition to the formats in the JSON Schema.
| type | format | Description |
|---|---|---|
| string | long | An integer within the range of -9223372036854775808 to 9223372036854775807. |
| string | locale | Strings of "", "en", "ja" or "zh". |
| string | boolean | Strings of "true" or "false". |
| string | Strings in an Email format. | |
| string | number | Real data type |
| string | query | Kintone query format. For more data on query formats refer to the following document: Query String |
| string | date-time | Date and time string in ISO format. |
| string | timezone | String representing time-zone. |
More custom Kintone formats may be added in the future.
About File APIs
Upload File API
(POST /k/v1/apis/json)
The request object in the JSON Schema contains custom Kintone formats, but the API request will need to be sent as a Multipart/form-data format.
Download File API
(GET /k/v1/apis/json)
The response object in the JSON Schema is empty, but a file will be downloaded when the API is used.