Skip to main content

createPublicAppDraft

Requires permission settings:apps:manage.

Draft a public app and get its OAuth client id and secret (shown only once). It can be installed on this dev tenant only until Growmax review approves it. Never give an app token to an AI model or agent: AI must use the MCP surface and its approval flow.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation CreatePublicAppDraft($input: CreatePublicAppDraftInputGql!) {
createPublicAppDraft(input: $input) {
clientId
clientSecret
app {
id
name
status
createdAt
appUrl
clientId
}
}
}

Variables:

{
"input": {
"description": "string",
"dpaVersion": "string",
"handle": "string",
"name": "string",
"privacyUrl": "string",
"redirectUris": [
"string"
],
"supportUrl": "string",
"tagline": "string"
}
}

Response:

{
"data": {
"createPublicAppDraft": {
"clientId": "string",
"clientSecret": "string",
"app": {
"id": "id",
"name": "string",
"status": "string",
"createdAt": "2025-01-15T00:00:00Z",
"appUrl": "string",
"clientId": "string"
}
}
}
}
createPublicAppDraft(
input: CreatePublicAppDraftInputGql!
): PrivateAppCredentialsResult!

Arguments​

createPublicAppDraft.input ● CreatePublicAppDraftInputGql! non-null input​

The app and its listing.

Type​

PrivateAppCredentialsResult object​

A new private app and its OAuth credentials. The client secret is shown only once.