API ReferenceManagementInbound Apps
POST
/v2/mgmt/thirdparty/app/create

Authorization

Descope Project ID and Management Key
AuthorizationBearer <token>

Project ID:Management Key as bearer token.

In: header

Request Body

application/json

name*string
Length1 <= length
description?string
logo?string
loginPageUrl?string
approvedCallbackUrls?array<string>
string
permissionsScopes?array<managementv1.ApplicationScope>
consentFlowId?string
logoUrl?string
jwtBearerSettings?object
sessionSettings?object
nonConfidentialClient?boolean
audienceWhitelist?array<string>
string
Itemsitems <= 100
clientId?string
clientSecret?string
forceAddAllAuthorizationInfo?boolean
connectionsScopes?array<managementv1.ApplicationScope>
defaultAudience?"" | "projectId" | "clientId"
Value in"" | "projectId" | "clientId"
customAttributes?object

Custom attributes as key-value pairs. Keys must be strings; values can be strings, numbers, booleans, or arrays.

Example{ "attribute-key": "attribute-value" }
cibaSettings?object
jarSettings?object

JAR (JWT-Secured Authorization Request, RFC 9101) settings for Third Party Applications

allowedTenants?array<string>
string
clientType?"" | "confidential" | "public"
Value in"" | "confidential" | "public"
forcePkce?boolean
allowPartialScopes?boolean
scopeClaimMapping?array<AppScopeClaimMappingEntry>
forceDpop?boolean
rarSettings?object
idJagTargetClients?object
clientAuthMethod?"" | "clientSecret" | "privateKeyJwt" | "workloadIdentity" | "mtls"

clientAuthMethod: "clientSecret" (default when empty), "privateKeyJwt" (only clientAssertions are accepted), "workloadIdentity" (only workloadClientAssertions are accepted) or "mtls" (only a registered mTLS certificate is accepted).

Value in"" | "clientSecret" | "privateKeyJwt" | "workloadIdentity" | "mtls"
clientAssertions?array<ThirdPartyApplicationClientAssertion>

clientAssertions are the private_key_jwt trust entries (JWKS URL or PEM public key per entry).

workloadClientAssertions?array<ThirdPartyApplicationWorkloadClientAssertion>

workloadClientAssertions are the workload identity trust entries (SPIFFE trust domain or OIDC issuer per entry).

forcePar?boolean
mtlsClientAuthMethods?object
forceMtls?boolean
authorizationCodeDisabled?boolean

authorizationCodeDisabled rejects the authorization_code grant for this app, including its authorization requests. Default false.

clientCredentialsDisabled?boolean

clientCredentialsDisabled rejects the client_credentials grant for this app. Default false. A public client cannot use this grant.

refreshTokenDisabled?boolean

refreshTokenDisabled rejects the refresh_token grant for this app, so its tokens cannot be refreshed. Default false.

jwtBearerDisabled?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.

deviceCodeDisabled?boolean

deviceCodeDisabled rejects the device authorization grant (urn:ietf:params:oauth:grant-type:device_code) for this app. Default false.

tokenExchangeDisabled?boolean

tokenExchangeDisabled rejects the token exchange grant (urn:ietf:params:oauth:grant-type:token-exchange) for this app. Default false.

cibaEnabled?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.

tags?array<string>
string

tags label the app, matched by policy rules through client.tags conditions. Up to 100 tags, each up to 100 bytes. Default empty.

Itemsitems <= 100
noScopeBehavior?"legacyNoScopePolicy" | "grantDefaultScopes" | "grantAllScopes"

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.

Formatenum
Value in"legacyNoScopePolicy" | "grantDefaultScopes" | "grantAllScopes"
defaultScopes?array<string>
string

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."). "offline_access" is always rejected - a refresh token has to be requested. Defaults to empty.

Itemsitems <= 100
agentic?boolean

agentic makes the app a client in the Agentic Identity Hub, the same as creating it there: agent policies apply to its authorizations, its consents are recorded as agentic identities, and consents for it cannot be created through the Management API. Default false.

createdBy?string

createdBy sets the project user who owns the app (the console's Owner), given as a user ID or a login ID. The user must exist in the project; the app stores and returns that user's display name. A request made as a user may name only themself; a management key needs the users read role to set it. Default: the caller - the calling user's display name, or the management key's ID.

Create a new third party application using the structured scope-claim mapping model, using a valid management key. The legacy attributesScopes field is ignored.

curl -X POST "https://api.descope.com/v2/mgmt/thirdparty/app/create" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "id": "string",  "cleartext": "string",  "clientId": "string"}
export interface Response {id?: stringcleartext?: stringclientId?: string}
Was this helpful?