sdkDeterministic

Get content strategy

pipeline.getContentStrategy

Get the active content strategy for the workspace. Read-only and deterministic.

Parameters

workspaceId
string
Optional with API key auth, inferred from the key.

Example

TypeScripttypescript
await pipeline.getContentStrategy({})

Response

Success response schemajson schema
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"workspaceId": {
"type": "string"
},
"name": {
"type": "string"
},
"isActive": {
"type": "boolean"
}
},
"required": [
"id",
"workspaceId",
"name",
"isActive"
]
}
},
"required": [
"success",
"data"
]
}

Exceptions

PipelineError
Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.
Pipeline TypeScript SDK documentation | Pipeline