Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

Get workspace

GET/v1/workspaces/{id}Get workspace

Returns the workspace with the given ID.

Parameters

idstringpathrequired

pattern ^(wksp_)?([cC][^\s-]{8,}|[a-z0-9]+)$

Responses

200Workspace retrieved.application/json
object
dataobjectrequired
Show child attributes
createdAtstring · date-timerequired
idstringrequired

pattern ^(wksp_)([cC][^\s-]{8,}|[a-z0-9]+)$

namestringrequired
typestringrequired

const "workspace"

urlstring · urirequired
Example response
{
  "data": {
    "createdAt": "2026-06-09T00:00:00Z",
    "id": "string",
    "name": "string",
    "type": "workspace",
    "url": "https://example.com"
  }
}
401Missing or invalid authorization token.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
404Workspace with the specified ID was not found.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
Documentation menu