Skip to main content

Get MCP preferences

GET /api/mcp/preferences

Read account defaults used by the hosted MCP service. Change defaults in the dashboard; this REST operation is read-only.

Authentication​

  • Option 1: x-api-key: YOUR_API_KEY (header). API key for authentication. Create one in your dashboard.
  • Option 2: Authorization: Bearer YOUR_ACCESS_TOKEN. Dashboard JWT in Authorization: Bearer <token>, only on operations that explicitly list this scheme. Prefer x-api-key for REST integrations. OAuth for hosted MCP is a separate connection at https://mcp.zvid.io/mcp.

Create API keys at app.zvid.io/api-keys. Keep credentials on your server.

Parameters​

This operation has no path, query, or additional header parameters.

Request​

The shell examples read credentials from ZVID_API_KEY (or ZVID_ACCESS_TOKEN for Bearer authentication). Set that variable in your environment. Replace sample project, template, job, and asset identifiers with values from your own account.

This operation does not take a request body.

Request example​

curl --request GET 'https://api.zvid.io/api/mcp/preferences' \
--header "x-api-key: $ZVID_API_KEY"

Responses​

HTTP 200​

Successful response

Content type: application/json.

Required properties: defaultProfile, defaultMaxRenderCredits, profiles.

FieldTypeRequiredDescription and constraints
response.defaultProfile"creator" / "readonly" / "automation" / "developer"Yes
response.defaultMaxRenderCreditsintegerYesMinimum: 1. Maximum: 10000.
response.profilesarray of objectYes

Nested field: response.profiles

Array item: response.profiles[]

Required properties: id, name, description.

FieldTypeRequiredDescription and constraints
response.profiles[].idstringYes
response.profiles[].namestringYes
response.profiles[].descriptionstringYes

HTTP 400​

Invalid input or semantic validation error

Content type: application/json.

Required properties: error.

FieldTypeRequiredDescription and constraints
response.errorstringYes
response.messagestringNo
response.detailsarray of objectNo
response.planLimitsobjectNoPresent on render validation errors; contains the authenticated user's current render limits.

Nested field: response.details

Array item: response.details[]

Unknown properties are rejected. Required properties: field, message.

FieldTypeRequiredDescription and constraints
response.details[].fieldstringYes
response.details[].messagestringYes

HTTP 401​

Missing or invalid credentials

Content type: application/json.

Unknown properties are rejected. Required properties: error.

FieldTypeRequiredDescription and constraints
response.errorstringYesError type
response.messagestringNoHuman-readable error message

HTTP 404​

Not found for this account

Content type: application/json.

Required properties: error.

FieldTypeRequiredDescription and constraints
response.errorstringYesError type
response.messagestringNoHuman-readable error message

HTTP 500​

Server error

Content type: application/json.

Required properties: error.

FieldTypeRequiredDescription and constraints
response.errorstringYesError type
response.messagestringNoHuman-readable error message

Schema definitions​

The following definitions describe the fields referenced above. Expand a definition to inspect its complete contract.

McpPreferences

Required properties: defaultProfile, defaultMaxRenderCredits, profiles.

FieldTypeRequiredDescription and constraints
McpPreferences.defaultProfile"creator" / "readonly" / "automation" / "developer"Yes
McpPreferences.defaultMaxRenderCreditsintegerYesMinimum: 1. Maximum: 10000.
McpPreferences.profilesarray of objectYes

Nested field: McpPreferences.profiles

Array item: McpPreferences.profiles[]

Required properties: id, name, description.

FieldTypeRequiredDescription and constraints
McpPreferences.profiles[].idstringYes
McpPreferences.profiles[].namestringYes
McpPreferences.profiles[].descriptionstringYes
ValidationError

Required properties: error.

FieldTypeRequiredDescription and constraints
ValidationError.errorstringYes
ValidationError.messagestringNo
ValidationError.detailsarray of objectNo
ValidationError.planLimitsobjectNoPresent on render validation errors; contains the authenticated user's current render limits.

Nested field: ValidationError.details

Array item: ValidationError.details[]

Unknown properties are rejected. Required properties: field, message.

FieldTypeRequiredDescription and constraints
ValidationError.details[].fieldstringYes
ValidationError.details[].messagestringYes
AuthenticationError

Unknown properties are rejected. Required properties: error.

FieldTypeRequiredDescription and constraints
AuthenticationError.errorstringYesError type
AuthenticationError.messagestringNoHuman-readable error message
Error

Required properties: error.

FieldTypeRequiredDescription and constraints
Error.errorstringYesError type
Error.messagestringNoHuman-readable error message