GetAgentSessionArtifactMeta - GetAgentSessionArtifactMeta

Updated at:

Retrieves artifact metadata and content by session ID and artifact path.

Operation description

Description

  • Retrieves a single artifact's metadata and content by SessionId and ArtifactPath.

  • SessionId and ArtifactPath are required.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

Jsonrpc

string

No

The JSON-RPC version. Set the value to 2.0.

2.0

Id

string

No

A caller-defined ID, returned as-is in the response.

900335678024

Params

object

No

The business parameters.

SessionId

string

No

The session ID. Required.

sess_0f12abc34

ArtifactPath

string

No

The artifact path. Required.

mock/mock_report.md

Response elements

Element

Type

Description

Example

object

Response schema.

RequestId

string

The request trace_id for log correlation.

CE70C54F-A3BD-5C19-88EF-2A7D3451C449

JsonRpcResponse

object

The JSON-RPC response.

Jsonrpc

string

The JSON-RPC version. Always 2.0.

2.0

Id

string

The caller-defined ID, returned as-is.

300010555

Result

object

The metadata of the artifact.

ArtifactPath

string

The artifact path.

mock/mock_report.md

ArtifactName

string

The artifact name.

mock_report.md

ArtifactContent

string

The artifact content.

This is md content

Examples

Success response

JSON format

{
  "RequestId": "CE70C54F-A3BD-5C19-88EF-2A7D3451C449",
  "JsonRpcResponse": {
    "Jsonrpc": "2.0",
    "Id": "300010555",
    "Result": {
      "ArtifactPath": "mock/mock_report.md",
      "ArtifactName": "mock_report.md",
      "ArtifactContent": "This is md content"
    }
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.