Get the API index
Returns the API name, version and links to the documentation and the OpenAPI document.
GET
/- Required scope
- No authentication required
- Authentication
- No authentication required
No API key is needed. The request is not rate limited, so the response carries no rate-limit headers.
Response
200
The API index.
Request-IdID of this request (req_prefix), the same asrequest_idin an error body. It is also sent asX-Request-ID. Quote it when you contact support.X-Client-Request-IdYour ownX-Client-Request-Idrequest header, echoed back. It is sent only when the value you sent has 1-128 characters from A-Z a-z 0-9 . _ : -.
Content type: application/json
objectstringrequiredAlways
api.versionstringrequiredAPI version,
v1.docs_urlstringrequiredLink to the documentation.
openapi_urlstringrequiredLink to the OpenAPI 3.1 document.
Examples
Request
curl "https://api.diko.app/api/v1"import requests
response = requests.get(
"https://api.diko.app/api/v1",
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.diko.app/api/v1")
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`)
console.log(await response.json())Example response · 200 · application/json
{
"object": "api",
"version": "v1",
"docs_url": "https://diko.app/en/api-docs",
"openapi_url": "https://api.diko.app/api/v1/openapi.json"
}Errors
This endpoint can return these errors. Every code is described in the error catalog.
| HTTP | Code | Meaning | Retry? |
|---|---|---|---|
| 404 | api_disabled | The public API is currently switched off. | conditionally |
| 500 | internal_error | An internal server error. | conditionally |