Projects

Get project instance logs

Legacy alias of /v1/projects/{projectId}/instances/{instanceName}/logs. Projects were previously called apps. Returns the most recent log lines of one instance of a deployed project, oldest first, without color codes. The org's plan sets the largest tail. List the instance names with GET /v1/projects/{projectId}/instances.

get/v1/apps/{appId}/instances/{instanceName}/logs

Request

  • Base URL
    https://api.spice.ai
  • Auth
    HTTP bearer

Path parameters

appIdinteger required

The ID of the project

instanceNamestring required

The instance name from GET /v1/projects/{projectId}/instances

Query parameters

tailinteger

How many of the most recent lines to return

Headers

X-Org-Namestring

The organization to act on, by handle. Omit it to act on the organization the credential is bound to; sending it blank is a 400, not the same as omitting it. A user credential may name any organization its owner belongs to; a machine credential is pinned to its own. A portal session token is bound to none, so it must send this header on every route but GET /v1/orgs (400 org_assertion_required otherwise).

Response

The instance's most recent log lines

instancestring required

The instance name

tailinteger required

The number of lines asked for

linesstring[] required

Log lines, oldest first

Changes

No recorded changes to this operation across all 1 revision of this API.