API ReferenceManagementInbound Apps
GET
/v2/mgmt/thirdparty/app/load

Authorization

Descope Project ID and Management Key
AuthorizationBearer <token>

Project ID:Management Key as bearer token.

In: header

Query Parameters

id?string
clientId?string

Loads a third party application by id in the structured scope-claim mapping model, using a valid management key. Legacy attributesScopes are converted to scopeClaimMapping and returned empty.

curl -X GET "https://api.descope.com/v2/mgmt/thirdparty/app/load"
{  "id": "string",  "name": "string",  "description": "string",  "clientId": "string",  "logo": "string",  "loginPageUrl": "string",  "approvedCallbackUrls": [    "string"  ],  "permissionsScopes": [    {      "name": "string",      "description": "string",      "optional": true,      "values": [        "string"      ]    }  ],  "dynamic": true,  "status": "string",  "logoUrl": "string",  "jwtBearerSettings": {    "issuers": {      "property1": {        "jwksUri": "string",        "signAlgorithm": "RS256",        "userInfoUri": "string",        "externalIdFieldName": "string",        "jitDisabled": true,        "attributeMapping": {          "name": "string",          "email": "string",          "group": "string",          "givenName": "string",          "middleName": "string",          "familyName": "string",          "picture": "string",          "customAttributes": {            "property1": "string",            "property2": "string"          }        }      },      "property2": {        "jwksUri": "string",        "signAlgorithm": "RS256",        "userInfoUri": "string",        "externalIdFieldName": "string",        "jitDisabled": true,        "attributeMapping": {          "name": "string",          "email": "string",          "group": "string",          "givenName": "string",          "middleName": "string",          "familyName": "string",          "picture": "string",          "customAttributes": {            "property1": "string",            "property2": "string"          }        }      }    },    "jwtBearerGrantTypeAudienceToUse": "string",    "jwtBearerGrantTypeScopeToUse": "string",    "jwtBearerGrantTypeCustomClaimsToUse": "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"  },  "nonConfidentialClient": true,  "audienceWhitelist": [    "string"  ],  "forceAddAllAuthorizationInfo": true,  "connectionsScopes": [    {      "name": "string",      "description": "string",      "optional": true,      "values": [        "string"      ]    }  ],  "defaultAudience": "",  "skipConsentScreen": true,  "useResources": true,  "customAttributes": {    "attribute-key": "attribute-value"  },  "cibaSettings": {    "enabled": true,    "expirationTime": 0,    "expirationTimeUnit": "seconds",    "emailServiceProvider": "string",    "emailServiceProviderFallback": "string",    "emailServiceTemplateId": "string",    "loginPageURL": "string",    "notificationMethod": "",    "pushAppleServiceProvider": "string",    "pushAndroidServiceProvider": "string",    "pushEmailFallback": true  },  "jarSettings": {    "enforce": true,    "publicKey": "string",    "maxLifetimeSeconds": 0,    "fapi": true  },  "allowedTenants": [    "string"  ],  "clientType": "",  "forcePkce": true,  "allowPartialScopes": true,  "scopeClaimMapping": [    {      "scope": "string",      "claims": {        "property1": "string",        "property2": "string"      },      "description": "string",      "useProjectMapping": true,      "mandatory": true,      "claimTargets": {        "property1": {          "tokens": [            "accessToken"          ]        },        "property2": {          "tokens": [            "accessToken"          ]        }      }    }  ],  "createdTime": 0,  "forceDpop": true,  "rarSettings": {    "schemas": [      {        "type": "string",        "schema": {}      }    ]  },  "idJagTargetClients": {    "property1": {      "targetClientId": "string"    },    "property2": {      "targetClientId": "string"    }  },  "clientAuthMethod": "",  "clientAssertions": [    {      "keySource": "jwks",      "jwksUri": "string",      "publicKey": "string",      "signAlgorithm": "string"    }  ],  "workloadClientAssertions": [    {      "federationType": "spiffe",      "trustDomain": "string",      "issuer": "string",      "jwksUri": "string",      "allowedSubjects": [        "string"      ],      "signAlgorithm": "string"    }  ],  "forcePar": true,  "mtlsClientAuthMethods": {    "tlsClientAuth": {      "credentials": [        {          "id": "string",          "name": "string",          "subjectDn": "string",          "pem": "string",          "thumbprint": "string",          "createdAt": 0        }      ]    },    "selfSignedTlsClientAuth": {      "credentials": [        {          "id": "string",          "name": "string",          "subjectDn": "string",          "pem": "string",          "thumbprint": "string",          "createdAt": 0        }      ]    }  },  "forceMtls": true,  "authorizationCodeDisabled": true,  "clientCredentialsDisabled": true,  "refreshTokenDisabled": true,  "jwtBearerDisabled": true,  "deviceCodeDisabled": true,  "tokenExchangeDisabled": true,  "cibaEnabled": true,  "tags": [    "string"  ],  "noScopeBehavior": "legacyNoScopePolicy",  "defaultScopes": [    "string"  ],  "agentic": true,  "createdBy": "string"}
export interface Response {id: stringname: stringdescription?: stringclientId: stringlogo?: stringloginPageUrl?: stringapprovedCallbackUrls?: string[]permissionsScopes?: {name: stringdescription?: stringoptional?: booleanvalues?: string[]}[]dynamic?: booleanstatus?: stringlogoUrl?: stringjwtBearerSettings?: {issuers?: {[k: string]: IssuerSettings}jwtBearerGrantTypeAudienceToUse?: stringjwtBearerGrantTypeScopeToUse?: stringjwtBearerGrantTypeCustomClaimsToUse?: 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")/** * Inbound apps and MCP servers only; ignored on SSO applications. 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/** * Inbound apps and MCP servers only; ignored on SSO applications. How long a client may stay unused before its refresh token is rejected, in inactivityTimeUnit. */inactivityTime?: number/** * Inbound apps and MCP servers only; ignored on SSO applications. Unit of inactivityTime: seconds, minutes, hours, days, weeks. */inactivityTimeUnit?: ("seconds" | "minutes" | "hours" | "days" | "weeks" | "")}nonConfidentialClient?: boolean/** * @maxItems 100 */audienceWhitelist?: string[]forceAddAllAuthorizationInfo?: booleanconnectionsScopes?: {name: stringdescription?: stringoptional?: booleanvalues?: string[]}[]defaultAudience?: ("" | "projectId" | "clientId")skipConsentScreen?: booleanuseResources?: boolean/** * Custom attributes as key-value pairs. Keys must be strings; values can be strings, numbers, booleans, or arrays. */customAttributes?: {[k: string]: string}cibaSettings?: ThirdPartyApplicationCIBASettings/** * JAR (JWT-Secured Authorization Request, RFC 9101) settings for Third Party Applications */jarSettings?: {enforce?: booleanpublicKey?: stringmaxLifetimeSeconds?: numberfapi?: boolean}allowedTenants?: string[]clientType?: ("" | "confidential" | "public")forcePkce?: booleanallowPartialScopes?: booleanscopeClaimMapping?: {scope?: string/** * claims is consulted only when useProjectMapping is false. When useProjectMapping is true, *  the project-wide mapping's entry for `scope` provides the claims and this field is ignored. */claims?: {[k: string]: string}description?: string/** * useProjectMapping, when true, reuses the project-wide ScopeClaimMapping's entry for this *  scope (the app's `claims` field is ignored). Default false uses the app's own `claims`. */useProjectMapping?: boolean/** * mandatory, when true, means the scope is always granted and cannot be deselected by the *  user on the consent screen. Mirrors the inverse of the legacy ApplicationScope.optional. */mandatory?: boolean/** * claimTargets narrows which tokens a claim is written to, keyed by the claim name. *  Consulted only when useProjectMapping is false — when it is true the project-wide *  entry supplies both the claims and their targets. Empty means every token. */claimTargets?: {/** * ClaimTokenTargets lists the tokens a single mapped claim is written to. An empty *  list means every token, which is the default for claims with no entry. *  *  Values are plain strings rather than an enum because this field is served over two *  JSON surfaces with different enum encodings: the management API marshals via protojson *  (enum names) while the console API marshals the proto with encoding/json (enum numbers). *  A string renders identically on both. Unknown values are dropped on write, so a claim *  with no valid target falls back to the "every token" default. *  *  Wrapper message because proto3 map values cannot be `repeated`. */[k: string]: {tokens?: ("accessToken" | "idToken" | "userInfo")[]}}}[]/** * createdTime is epoch seconds (int32 so it serializes as a JSON number). */createdTime?: numberforceDpop?: booleanrarSettings?: {/** * @maxItems 50 */schemas?: RARTypeSchema[]}/** * The client id the target authorization server knows this app by, per ID-JAG target resource URI. */idJagTargetClients?: {[k: string]: IdJagTargetClient}/** * clientAuthMethod: "clientSecret" (default when empty), "privateKeyJwt" (only clientAssertions are accepted), *  "workloadIdentity" (only workloadClientAssertions are accepted) or "mtls" (only a registered mTLS certificate is accepted). */clientAuthMethod?: ("" | "clientSecret" | "privateKeyJwt" | "workloadIdentity" | "mtls")/** * clientAssertions are the private_key_jwt trust entries (JWKS URL or PEM public key per entry). */clientAssertions?: ThirdPartyApplicationClientAssertion[]/** * workloadClientAssertions are the workload identity trust entries (SPIFFE trust domain or OIDC issuer per entry). */workloadClientAssertions?: ThirdPartyApplicationWorkloadClientAssertion[]forcePar?: booleanmtlsClientAuthMethods?: {tlsClientAuth?: TLSClientAuthselfSignedTlsClientAuth?: SelfSignedTLSClientAuth}forceMtls?: boolean/** * authorizationCodeDisabled rejects the authorization_code grant for this app, including its authorization requests. Default false. */authorizationCodeDisabled?: boolean/** * clientCredentialsDisabled rejects the client_credentials grant for this app. Default false. A public client cannot use this grant. */clientCredentialsDisabled?: boolean/** * refreshTokenDisabled rejects the refresh_token grant for this app, so its tokens cannot be refreshed. Default false. */refreshTokenDisabled?: boolean/** * jwtBearerDisabled rejects the JWT bearer grant (urn:ietf:params:oauth:grant-type:jwt-bearer) for this app. Default false. A public client cannot use this grant. */jwtBearerDisabled?: boolean/** * deviceCodeDisabled rejects the device authorization grant (urn:ietf:params:oauth:grant-type:device_code) for this app. Default false. */deviceCodeDisabled?: boolean/** * tokenExchangeDisabled rejects the token exchange grant (urn:ietf:params:oauth:grant-type:token-exchange) for this app. Default false. */tokenExchangeDisabled?: boolean/** * cibaEnabled allows the CIBA grant (urn:openid:params:grant-type:ciba) for this app and requires cibaSettings. Default false. A public client cannot use this grant. */cibaEnabled?: boolean/** * tags label the app for policy rules (matched by client.tags conditions) and for filtering in the console. */tags?: string[]/** * noScopeBehavior decides what this application grants when a client's authorization or token request names no scopes (after the protocol-only scopes "openid" and "offline_access" are dropped). Send one of: 0 = legacyNoScopePolicy, keep the behavior this application kind already had, which is granting every advertised scope for a third party application and granting none for a sign-in application (the default); 1 = grantDefaultScopes, grant exactly the defaultScopes list; 2 = grantAllScopes, grant every scope the application advertises. Values 1 and 2 behave identically on both application kinds. Omit the field entirely to leave the stored behavior untouched; sending 0 sets it back to legacy. */noScopeBehavior?: ("legacyNoScopePolicy" | "grantDefaultScopes" | "grantAllScopes")/** * defaultScopes are the scopes granted when noScopeBehavior is grantDefaultScopes (1) and a client requests no scopes; ignored under every other behavior. Must name at least one scope that is not a protocol scope under that behavior - "openid" alone resolves to nothing once the request validator strips it. Every entry has to be a scope the application's own request validator accepts, or each scope-less request fails with invalid_scope: on a third party application that means a scope the application declares (its permission, attribute or connection scopes, or its scopeClaimMapping), plus "openid"; on a sign-in application that defines its own scopeClaimMapping, that mapping plus "openid" and "profile"; on a sign-in application without one, any standard OIDC scope ("openid", "profile", "email", "phone", "picture", "descope.claims", "customAttributes.<name>"). "offline_access" is always rejected - a refresh token has to be requested. Defaults to empty. *  * @maxItems 100 */defaultScopes?: string[]/** * agentic is true when the app is a client in the Agentic Identity Hub: it was created there or marked agentic, it registered itself (dynamic client registration or a client ID metadata document), it is bound to an MCP server, or it is an agent gateway client. */agentic?: boolean/** * createdBy is the app's owner as the console shows it (Owner): the display name of the user who created the app or was later set as its owner - their name, or else their email, login ID or user ID. Empty when unknown. */createdBy?: string}export interface IssuerSettings {/** * Must not resolve to an internal or private address. */jwksUri?: stringsignAlgorithm?: ("RS256" | "ES256" | "ES384" | "ES512" | "")/** * Must not resolve to an internal or private address. */userInfoUri?: stringexternalIdFieldName?: string/** * Cross-App Access JIT provisioning, per trusted issuer. jitDisabled: only sign in an already- *  provisioned user, do not create. attributeMapping maps assertion claims to user fields. Group->role / *  FGA / default-role / priority mapping is read from the tenant's shared SSO config, NOT per issuer. */jitDisabled?: booleanattributeMapping?: {name?: stringemail?: stringgroup?: stringgivenName?: stringmiddleName?: stringfamilyName?: stringpicture?: stringcustomAttributes?: {[k: string]: string}}}export interface ThirdPartyApplicationCIBASettings {enabled?: booleanexpirationTime?: numberexpirationTimeUnit?: ("seconds" | "minutes" | "hours" | "days" | "weeks" | "")emailServiceProvider?: stringemailServiceProviderFallback?: stringemailServiceTemplateId?: stringloginPageURL?: string/** * "email" (default) or "push". With "push", login_hint must be the user's email and one of their login IDs. */notificationMethod?: ("" | "email" | "push")/** * APN connector as "apn:<connectorId>". "push" requires this or pushAndroidServiceProvider. */pushAppleServiceProvider?: string/** * FCM connector as "fcm:<connectorId>". */pushAndroidServiceProvider?: string/** * With "push", send the email to login_hint when the push reaches no device. Default false. */pushEmailFallback?: boolean}export interface RARTypeSchema {type: stringschema?: {}}/** * A struct rather than a bare client id so further per-pair attributes are additive. */export interface IdJagTargetClient {targetClientId?: string}/** * ThirdPartyApplicationClientAssertion is one private_key_jwt trust entry (RFC 7523 section 2.2): a JWKS URL *  or a PEM public key. On a CIMD app the list is derived from the client's metadata document on every refresh. */export interface ThirdPartyApplicationClientAssertion {keySource: ("jwks" | "publicKey")jwksUri?: stringpublicKey?: stringsignAlgorithm?: string}/** * ThirdPartyApplicationWorkloadClientAssertion is one workload identity trust entry (RFC 7521 section 4.2): a *  SPIFFE trust domain (keys from its bundle endpoint, or from its OIDC Discovery Provider when issuer is set), *  or an OIDC issuer. The assertion's sub names the workload, not the client; allowedSubjects binds the *  workloads this client accepts. */export interface ThirdPartyApplicationWorkloadClientAssertion {federationType: ("spiffe" | "oidc")trustDomain?: stringissuer?: stringjwksUri?: string/** * @minItems 1 * @maxItems 20 */allowedSubjects: [string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]signAlgorithm?: string}export interface TLSClientAuth {credentials?: {id?: stringname: stringsubjectDn?: stringpem?: stringthumbprint?: stringcreatedAt?: number}[]}export interface SelfSignedTLSClientAuth {credentials?: MTLSClientAuthCredential[]}export interface MTLSClientAuthCredential {id?: stringname: stringsubjectDn?: stringpem?: stringthumbprint?: stringcreatedAt?: number}
Was this helpful?