Information
- OpenAPI version:
3.1.0
Information
3.1.0A JWT issued by the ModelDesk authorization server, sent as Authorization: Bearer <token>. Applies to both interactive user tokens and machine service-account tokens.
A machine token reaches only the part of the API its service account is scoped for. Four scopes exist. Three of them form a ladder in which each rung includes the one below it: model:content grants the current published state of the organization’s shared models — the model document, its content bundle and media, rendered diagrams, export-job status, and the metamodel reference data a pull resolves against; model:read grants every read projection on top of that — elements, diagrams, versions, commits, delta, validation, namespaces, dependencies and mapping state — and therefore includes model:content; model:write grants everything that commits and therefore includes both model:read and model:content. The fourth, model:delete, stands apart: it permits terminal destruction of a model or of a released version and nothing else. No scope implies it, and it implies no other, so a write-scoped account cannot destroy and a delete-scoped account cannot read.
Scopes are not declared formally on this scheme because an OpenAPI security scheme carries a scope list only for OAuth2 flows. Every machine-reachable operation instead carries an x-machine-scope extension naming the minimal scope a service-account token must hold to reach it; a token holding a higher rung of the ladder reaches it as well. An operation without the extension is not machine-reachable at all — a service-account token is refused there whatever scopes it carries — and interactive user tokens are unaffected by any of this.
Security scheme type: http
Bearer format: JWT