Skip to main content

Space

View as Markdown

GenieSpace object

space_idstring

Genie space ID

Example: e1ef34712a29169db030324fd0e1df5f

titlestring

Title of the Genie Space

descriptionstring

Description of the Genie Space

warehouse_idstring

Warehouse associated with the Genie Space

parent_pathstringPublic Preview

Parent folder path of the Genie Space

serialized_spacestring

The contents of the Genie Space in serialized string form. This field is excluded in List Genie spaces responses. Use the Get Genie Space API to retrieve an example response, which includes the serialized_space field. This field provides the structure of the JSON string that represents the space's layout and components.

etagstringPublic Preview

ETag for this space. Pass this value back in the update request to prevent overwriting concurrent changes.

create_timestringGA

Time when the Genie space was created.

update_timestringGA

Time when the Genie space was last modified, matching the value shown in the Genie Agent UI.

Get GA

GET /api/2.0/genie/spaces/{space_id}

Get details of a Genie Space.

API scopes: genie

Parameters

space_idstringpath

The ID associated with the Genie space

Example: e1ef34712a29169db030324fd0e1df5f

include_serialized_spacebooleanquery

Whether to include the serialized space export in the response. Requires at least CAN EDIT permission on the space.

Default: false

Response

Returns the GenieSpace object.

List GA

GET /api/2.0/genie/spaces

Get list of Genie Spaces.

API scopes: genie

Parameters

page_sizeint32query

Maximum number of spaces to return per page

Default: 20

Constraints: <= 100

page_tokenstringquery

Pagination token for getting the next page of results

Response

Returns a list of GenieSpace objects.

Create GA

POST /api/2.0/genie/spaces

Creates a Genie space from a serialized payload.

API scopes: genie

Request body

warehouse_idstring

Warehouse to associate with the new space

parent_pathstring

Parent folder path where the space will be registered

serialized_spacestring

The contents of the Genie Space in serialized string form. Use the Get Genie Space API to retrieve an example response, which includes the serialized_space field. This field provides the structure of the JSON string that represents the space's layout and components.

titlestring

Optional title override

descriptionstring

Optional description

Response

Returns the GenieSpace object.

Update GA

PATCH /api/2.0/genie/spaces/{space_id}

Updates a Genie space with a serialized payload.

API scopes: genie

Parameters

space_idstringpath

Genie space ID

Request body

serialized_spacestring

The contents of the Genie Space in serialized string form (full replacement). Use the Get Genie Space API to retrieve an example response, which includes the serialized_space field. This field provides the structure of the JSON string that represents the space's layout and components.

titlestring

Optional title override

descriptionstring

Optional description

warehouse_idstring

Optional warehouse override

etagstringPublic Preview

ETag returned by a previous GET or UPDATE. When set, the update will fail if the space has been modified since. Omit to apply the update unconditionally.

parent_pathstringPublic Preview

Parent workspace folder path to move this Genie space under.

Response

Returns the GenieSpace object.

Delete GA

DELETE /api/2.0/genie/spaces/{space_id}

Move a Genie Space to the trash.

API scopes: genie

Parameters

space_idstringpath

The ID associated with the Genie space to be sent to the trash.

Example: e1ef34712a29169db030324fd0e1df5f

Download Message Attachment Visualization Beta

GET /api/2.0/genie/{name=spaces/*/conversations/*/messages/*/attachments/*}/download-visualization

Download a rendered image of a message visualization attachment. The response body is the raw PNG image, not a JSON payload. This is only available if the attachment is a visualization and the message status is COMPLETED. This endpoint is not supported for Private Link workspaces.

API scopes: genie

Parameters

namestringpath

The resource name of the attachment to render, in the format spaces/{space_id}/conversations/{conversation_id}/messages/{message_id}/attachments/{attachment_id}.

Response

contentsstring

The rendered visualization as a PNG image. Returned as the raw HTTP response body rather than a JSON field.