GET
/v1/mgmt/resource/loadAuthorization
Descope Project ID and Management Key AuthorizationBearer <token>
Project ID:Management Key as bearer token.
In: header
Query Parameters
id?string
Load a resource by ID, including MCP servers (type "mcp"), using a valid management key.
curl -X GET "https://api.descope.com/v1/mgmt/resource/load"{ "resource": { "id": "string", "version": "string", "name": "string", "scopes": { "permissionsScopes": [ { "name": "string", "description": "string", "optional": true, "values": [ "string" ] } ], "attributesScopes": [ { "name": "string", "description": "string", "optional": true, "values": [ "string" ] } ], "connectionsScopes": [ { "name": "string", "description": "string", "optional": true, "values": [ "string" ] } ] }, "createdTime": "string", "modifiedTime": "string", "userAccess": "allow", "clientAccess": "allow", "description": "string", "uri": "string", "type": "api", "dynamicRegistrationSettings": { "dynamicRegistration": { "enabled": true, "disableApprovedScopesAsDefault": true, "flowId": "string" }, "cimdSettings": { "enabled": true, "domainPolicies": { "policies": [ { "domainPattern": "string", "enabled": true } ] } }, "dynamicRegistrationTemplateId": "string", "useTemplate": true, "loginPageURL": "string", "skipConsentScreen": true, "forceAddAllAuthorizationInfo": true, "tags": [ "string" ], "sessionSettings": { "enabled": true, "refreshTokenExpiration": 0, "refreshTokenExpirationUnit": "seconds", "sessionTokenExpiration": 0, "sessionTokenExpirationUnit": "seconds", "userTemplateId": "string", "keyTemplateId": "string", "keySessionTokenExpiration": 0, "keySessionTokenExpirationUnit": "seconds", "enableInactivity": true, "inactivityTime": 0, "inactivityTimeUnit": "seconds" }, "fallbackClientLogo": "string", "overrideProjectSettings": true, "issuerType": "project" }, "idJagTarget": { "authorizationServer": "string", "targetTenant": "string" }, "uris": [ "string" ], "rarSettings": { "schemas": [ { "type": "string", "schema": {} } ] }, "translate": true, "translateConnectorID": "string", "translateSourceLang": "string", "translateTargetLangs": [ "string" ] }}export interface Response {/** * Resource CRUD messages */resource?: {id: stringversion?: stringname: stringscopes?: {permissionsScopes?: {name: stringdescription?: stringoptional?: booleanvalues?: string[]}[]attributesScopes?: {name: stringdescription?: stringoptional?: booleanvalues?: string[]}[]connectionsScopes?: Projectv1[]}createdTime?: stringmodifiedTime?: string/** * User access to the resource: allow, deny or allowViaPolicy. */userAccess?: ("allow" | "deny" | "allowViaPolicy" | "")/** * Client access to the resource: allow, deny or allowViaPolicy. */clientAccess?: ("allow" | "deny" | "allowViaPolicy" | "")description?: string/** * Deprecated: use uris. An update can only resend it unchanged or empty it. */uri?: string/** * The kind of Resource, either `api` for an API Resource or `mcp` for an MCP Server Resource. `dynamicRegistrationSettings` applies only when `type` is `mcp`. */type?: ("api" | "mcp" | "")/** * Client registration settings (DCR, CIMD, login page and client defaults). Used by MCP servers. */dynamicRegistrationSettings?: DynamicRegistrationSettingsidJagTarget?: IdJagTargetSettings/** * Access token audiences, unique in the project. An update replaces the list. Supports a * wildcard, such as https://*.example.com/mcp. */uris?: string[]rarSettings?: {/** * @maxItems 50 */schemas?: RARTypeSchema[]}/** * Translate the scope descriptions on the consent screen. Scope names are OAuth identifiers and are never translated. */translate?: boolean/** * Translation connector used to generate the translations. */translateConnectorID?: stringtranslateSourceLang?: stringtranslateTargetLangs?: string[]}}/** * Keep this message synchronized with the matching one in ManagementService */export interface Projectv1 {name: stringdescription?: stringoptional?: booleanvalues?: string[]}/** * DynamicRegistrationSettings groups the DCR/CIMD configuration plus inline * client-side defaults for an mcp-typed Resource. Only meaningful when the * parent Resource has type=mcp. * * When useTemplate is true, the resource MUST reference a non-empty * dynamicRegistrationTemplateId, and the client defaults * (loginPageURL, sessionSettings, skipConsentScreen, * forceAddAllAuthorizationInfo, tags, plus template-only approvedCallbackUrls * and logo) are sourced from that template. When useTemplate is false, the * inline fields on this message are used directly. */export interface DynamicRegistrationSettings {/** * Dynamic client registration (DCR) for MCP clients. Ignored when issuerType is project, where * registration is enabled in the project OIDC settings instead. */dynamicRegistration?: Projectv11/** * Client ID metadata document (CIMD) settings for MCP clients. */cimdSettings?: {enabled?: booleandomainPolicies?: CIMDDomainPolicies}/** * ID of the dynamic registration template to source client defaults from. Required when useTemplate is true. */dynamicRegistrationTemplateId?: string/** * When true, client defaults come from the template referenced by dynamicRegistrationTemplateId instead of the inline fields. */useTemplate?: boolean/** * Login page URL that clients registered for this resource send users to. Required when DCR or CIMD is enabled, * unless useTemplate is true or issuerType is project. */loginPageURL?: stringskipConsentScreen?: booleanforceAddAllAuthorizationInfo?: booleantags?: string[]sessionSettings?: {enabled?: booleanrefreshTokenExpiration?: numberrefreshTokenExpirationUnit?: ("seconds" | "minutes" | "hours" | "days" | "weeks" | "")sessionTokenExpiration?: numbersessionTokenExpirationUnit?: ("seconds" | "minutes" | "hours" | "days" | "weeks" | "")userTemplateId?: stringkeyTemplateId?: stringkeySessionTokenExpiration?: numberkeySessionTokenExpirationUnit?: ("seconds" | "minutes" | "hours" | "days" | "weeks" | "")/** * Custom mode only (enabled=true). A refresh after inactivityTime without use is rejected and the client must authorize again. In inherit mode (enabled=false) the project session inactivity applies instead. */enableInactivity?: boolean/** * How long a client may stay unused before its refresh token is rejected, in inactivityTimeUnit. */inactivityTime?: number/** * Unit of inactivityTime: seconds, minutes, hours, days, weeks. */inactivityTimeUnit?: ("seconds" | "minutes" | "hours" | "days" | "weeks" | "")}fallbackClientLogo?: string/** * optional so an update that omits it keeps the stored value instead of resetting it. */overrideProjectSettings?: boolean/** * OAuth issuer the MCP server advertises: project (the project OIDC issuer) or mcpServer (a per-server issuer). * Defaults on create based on the project, and keeps its stored value when omitted on update. */issuerType?: ("project" | "mcpServer" | "")}export interface Projectv11 {enabled?: booleandisableApprovedScopesAsDefault?: booleanflowId?: string}export interface CIMDDomainPolicies {/** * @maxItems 100 */policies?: CIMDDomainPolicy[]}export interface CIMDDomainPolicy {/** * What the entry matches. An entry starting with https:// is compared to the whole client_id URL: same host, port * and path, where * stands for one path segment (https://chatgpt.com/oauth/* /client.json), ignoring the client_id's * query string and fragment. Any other entry is compared to the client_id hostname only: * for every host, * example.com for that host, *.example.com for it and its subdomains */domainPattern: string/** * false makes the entry a block. The first entry that matches a client decides, so a block goes before a broader allow */enabled?: boolean}/** * IdJagTargetSettings configures the ID-JAG (Cross App Access) assertion an inbound * app receives when it exchanges a token for this api-typed Resource: an external * server (typically a remote MCP server) protected by another authorization server. * The values describe the TARGET system that will accept the assertion, not this * project. Not allowed on mcp-typed Resources, which this project protects itself. */export interface IdJagTargetSettings {authorizationServer: stringtargetTenant?: string}export interface RARTypeSchema {type: stringschema?: {}} Was this helpful?
Update Project PUT
Update the project's name, environment or tags, leaving any fields that aren't set in the request unchanged, using a valid management key.
Load resource by URI GET
Load a resource by URI, using a valid management key. For an MCP server, the URI is any of its MCP server URLs. A URI no resource holds exactly matches a wildcard audience.