Skip to content
Endless Documentation
Workspace models

Get workspace model version

GET
/organizations/{organization_id}/models/{media_model_id}/versions/{version_id}

Get workspace model version. Scoped to the organization named by organization_id, and the media model named by media_model_id, and the version named by version_id.

Authorization

headerAuthorizationBearer <esk_live_…>

A workspace API key created in workspace settings. It acts as the member who created it, narrowed to its abilities, projects and credit limit. Each operation names the ability it needs.

Scope: models:read

Path Parameters

organization_id*string
Match^org_
media_model_id*string
Formatuuid
version_id*string
Formatuuid

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Response Body

OK

application/json
  1. response
id*string
Formatuuid
codename*string
name*string
owner*string|null
description*string|null
description_translations*|null
released_at*string
output_type*string
Value in"text""image""video""audio""3d"
type*|null
minimum_required_plan*|null
position*number
Range-140737488355328 <= value <= 140737488355327
unlisted*boolean
parameters*string|number|boolean|null||array<unknown|null>|null
version_id*string|null
version_number*|null
version_status?string
Value in"draft""current""superseded""disabled""discarded"
enabled*boolean
plan_available*boolean
base_cost*number|null
cost_floor*
cost_floor_by_input*
preference_position?|
Defaultnull
replaces?array<string>
Default[]
variants?array<>
Default[]
quick_actions?array<>
Default[]
Example Request
curl -X GET 'https://api.endless.app/organizations/org_abc123/models/0191e5a2-f480-747a-ad52-1c3b7e95f24d/versions/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "codename": "string",  "name": "string",  "owner": "string",  "description": "string",  "description_translations": {    "property1": "string",    "property2": "string"  },  "released_at": "string",  "output_type": "text",  "type": "edit",  "minimum_required_plan": "hobby",  "position": -140737488355328,  "unlisted": true,  "parameters": "string",  "version_id": "string",  "version_number": -9007199254740991,  "version_status": "draft",  "enabled": true,  "plan_available": true,  "base_cost": 0,  "cost_floor": {    "min": 0,    "max": 0,    "parameters": {      "property1": null,      "property2": null    },    "open_ended": true  },  "cost_floor_by_input": {    "image": {      "min": 0,      "max": 0,      "parameters": {        "property1": null,        "property2": null      },      "open_ended": true    },    "video": {      "min": 0,      "max": 0,      "parameters": {        "property1": null,        "property2": null      },      "open_ended": true    },    "audio": {      "min": 0,      "max": 0,      "parameters": {        "property1": null,        "property2": null      },      "open_ended": true    }  },  "preference_position": null,  "replaces": [],  "variants": [],  "quick_actions": []}