Composway Docs
Tool reference

Get workspace

Get a single workspace with its target audiences, products, default location and language, and its campaigns.

Tool name: get_workspace

Cost: Free - not billed, and does not draw on a plan quota.

Read-only

This tool only reads. It never creates or changes anything, so an assistant may call it without asking you first.

Get a single workspace with its target audiences, products, default location and language, and its campaigns.

Parameters

ParameterTypeRequiredNotes
workspaceIdstring (uuid)Yes-
Full input JSON Schema
{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"type": "object",
	"properties": {
		"workspaceId": {
			"type": "string",
			"format": "uuid",
			"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
		}
	},
	"required": ["workspaceId"]
}

Response

Full output JSON Schema
{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"type": "object",
	"properties": {
		"status": {
			"type": "string"
		},
		"defaultLocation": {
			"type": "object",
			"properties": {
				"id": {
					"type": "integer",
					"minimum": -9007199254740991,
					"maximum": 9007199254740991
				},
				"code": {
					"type": "string"
				},
				"isoCode": {
					"type": "string"
				},
				"name": {
					"type": "string"
				}
			},
			"required": ["id", "code", "isoCode", "name"],
			"additionalProperties": {}
		},
		"defaultLanguage": {
			"type": "object",
			"properties": {
				"id": {
					"type": "integer",
					"minimum": -9007199254740991,
					"maximum": 9007199254740991
				},
				"code": {
					"type": "string"
				},
				"isoCode": {
					"type": "string"
				},
				"name": {
					"type": "string"
				}
			},
			"required": ["id", "code", "isoCode", "name"],
			"additionalProperties": {}
		},
		"campaigns": {
			"type": "array",
			"items": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string",
						"format": "uuid",
						"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
					},
					"title": {
						"anyOf": [
							{
								"type": "string"
							},
							{
								"type": "null"
							}
						]
					},
					"status": {
						"type": "string"
					}
				},
				"additionalProperties": {}
			}
		},
		"targetAudiences": {
			"type": "array",
			"items": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string",
						"format": "uuid",
						"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
					},
					"name": {
						"type": "string"
					},
					"description": {
						"anyOf": [
							{
								"type": "string"
							},
							{
								"type": "null"
							}
						]
					}
				},
				"required": ["id", "name"],
				"additionalProperties": {}
			}
		},
		"targetProducts": {
			"type": "array",
			"items": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string",
						"format": "uuid",
						"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
					},
					"name": {
						"type": "string"
					},
					"description": {
						"anyOf": [
							{
								"type": "string"
							},
							{
								"type": "null"
							}
						]
					}
				},
				"required": ["id", "name"],
				"additionalProperties": {}
			}
		}
	},
	"required": [
		"status",
		"defaultLocation",
		"defaultLanguage",
		"campaigns",
		"targetAudiences",
		"targetProducts"
	],
	"additionalProperties": false
}

On this page