Get logs
GEThttps://api.instacloud.com/projects/{projectId}/logs
Token scope: account · org · project — read-only tokens allowed.
Runtime logs (compute and managed databases via the compute plane's logs API; DB via provider API when available)
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
component | query | "db" | "compute" | "redis" | "mysql" | "mongodb" | yes | |
branch | query | string | no | |
group | query | string | no | service group/name (default: the branch's sole matching service, else 'default') |
limit | query | integer | no | |
region | query | string | no | |
instance | query | string | no | |
from | query | integer | no | unix seconds — window start; compute pages the provider log cursor from here (~7-day retention) |
to | query | integer | no | unix seconds — window end (default now) |
projectId | path | string | yes |
Responses
200
Default Response
| Field | Type | Required | Description |
|---|---|---|---|
source | string | no | |
lines | object[] | no | |
lines.ts | string | no | |
lines.level | string | no | |
lines.instance | string | no | |
lines.region | string | no | |
lines.message | string | no | |
nextToken | string | no | |
note | string | no |
400
Default Response
| Field | Type | Required | Description |
|---|---|---|---|
error | string | yes |
403
Default Response
| Field | Type | Required | Description |
|---|---|---|---|
error | string | yes |
404
Default Response
| Field | Type | Required | Description |
|---|---|---|---|
error | string | yes |
409
Default Response
| Field | Type | Required | Description |
|---|---|---|---|
error | string | yes |
502
Default Response
| Field | Type | Required | Description |
|---|---|---|---|
error | string | yes |