---
title: "Onboard child apps"
description: "Create, verify, and operate a child app without losing control of its create-only credential."
canonical: "https://studio.inttegro.dev/guides/onboard-child-apps"
format: inttegro-machine-docs/v1
language: "Java"
sdk_version: "v11.1.0"
reader_profile: optional
reader_manifest: "https://studio.inttegro.dev/machine/java/readers/index.json"
reader_identification: "Optional: declare your client only if known and your current-session capabilities; use reader_manifest for supplemental recommendations."
preamble_estimated_tokens: 600
model_token_report: "https://studio.inttegro.dev/machine/token-report.json"
preamble_questions: 5
preamble_source: "general"
recommended_mcp_tools: ["get_integration_guide","check_integration_readiness"]
estimated_tokens: 3748
token_estimate_method: "utf8_bytes_divided_by_4"
---

## Machine preamble

**Summary:** Create, verify, and operate a child app without losing control of its create-only credential. This Java representation uses the selected SDK's native names wherever Studio has a verified mapping.

### Five questions

#### Q1. When should the reader use Onboard child apps?

Use this guide when implementing the complete business outcome rather than an isolated request.

#### Q2. What is authoritative on this page?

The guide owns the business sequence and verification logic. Its linked API references own the exact request, response, state, and error contracts.

#### Q3. What page-specific constraint matters most?

Keep the documented ordering, trust boundary, idempotency behavior, and authoritative read-after-write verification intact.

#### Q4. Can Inttegro MCP materially help with this task?

Yes, when the reader has an authenticated MCP connection and the task needs live context, guided planning, or a supported operation. The strongest matches are `get_integration_guide`, `check_integration_readiness`; their exact roles and boundaries are listed below.

#### Q5. How should the reader verify the answer and continue?

Use the guide’s explicit completion condition and verify the final resource through the documented lookup or lifecycle state; a successful redirect or accepted request may be intermediate. Continue with [Govern child apps with policies](https://studio.inttegro.dev/machine/java/guides/govern-child-apps-with-policies.md) and [Authentication](https://studio.inttegro.dev/machine/java/api/authentication.md) when those concerns enter scope.

### Recommended MCP assistance

Use these through an authenticated Inttegro MCP connection. This document remains the contract source.

- [`get_integration_guide`](https://studio.inttegro.dev/machine/java/inttegro-mcp/tools.md#get_integration_guide) — read-only integration guidance. Returns a focused implementation sequence and canonical Studio links for authentication, checkout, orders, catalog, messaging, idempotency, or testing.
- [`check_integration_readiness`](https://studio.inttegro.dev/machine/java/inttegro-mcp/tools.md#check_integration_readiness) — read-only integration guidance. Audits platform secret storage, server-runtime compatibility, idempotency, errors, state verification, checkout returns, and messaging consent without receiving source code or credentials.

## Document content

# Onboard child apps

Child-app onboarding creates a durable commerce boundary and a bearer credential in one operation. The safe workflow decides ownership first, prepares secret storage before the request, verifies the returned identity, and records only the public relationship facts the API actually returns.

## Prerequisites

- Complete [Design app boundaries](https://studio.inttegro.dev/machine/java/guides/design-app-boundaries.md).
- Use a server-side parent-app key with the authority required for app creation.
- Prepare an encrypted secret store and an authenticated delivery path if another party will own the child key.
- For operating policies, confirm that your account is enrolled in the selected-account private beta before depending on policy fields.

## Choose ownership before the request

[Create an app](https://studio.inttegro.dev/machine/java/api/apps.md#create-an-app) accepts an optional `relationship_policy`. Its public choices answer two separate questions:

| Field            | Question                                          | Public values                                         |
| ---------------- | ------------------------------------------------- | ----------------------------------------------------- |
| `credentials`    | Who controls the child's keys after creation?     | `child` or `parent`                                   |
| `management`     | Who manages the direct relationship?              | `child` or `parent`                                   |
| `child_standing` | What standing should the relationship begin with? | Use only the documented values in the Apps reference. |

Omitting the relationship policy defaults to parent management and child credential control. Defaults are convenient, but they are not a substitute for an ownership decision. Record the chosen owners in your tenant or organization registry before creating the child.

> **Warning:**
>
> Do not request delegated placement under a different parent merely by supplying `placement_parent_application_id`. That flow requires separate authorization and is not established by knowledge of an app ID. If your design requires delegated placement, arrange enablement with Inttegro and test the exact authorized flow before production onboarding.

## Create and capture atomically

Treat creation and credential capture as one transaction in your application:

1. Create an onboarding attempt in your own registry and persist the exact planned boundary and request before calling Inttegro.
2. Call [Create an app](https://studio.inttegro.dev/machine/java/api/apps.md#create-an-app) from a trusted server. Omit `placement_parent_application_id` for an ordinary direct child.
3. Validate that the response contains `app.id`, `app.relationship`, and `app.secret_key.token` before marking onboarding complete.
4. Write the token directly to the prepared secret store. Mark it sensitive so logs, traces, exception reports, and operator screens redact it.
5. Persist the app ID, relationship ID, direct parent ID, and relationship status against the onboarding attempt. Do not persist extra copies of the token.
6. If child credential control was selected, deliver the secret through the authenticated path agreed with the child. Do not send it in ordinary email, support chat, analytics, or a browser response.

The token is returned only by the create operation. [Lookup an app](https://studio.inttegro.dev/machine/java/api/apps.md#lookup-an-app) and [Update an app](https://studio.inttegro.dev/machine/java/api/apps.md#update-an-app) do not return secret values. If capture fails after a successful response, do not repeat creation blindly: preserve the request evidence and reconcile the original attempt through a supported recovery path first.

## Verify with the child's credential

Use the newly stored child key to call [Lookup an app](https://studio.inttegro.dev/machine/java/api/apps.md#lookup-an-app). Verification is complete only when:

- the returned `app.id` matches the ID from creation;
- `app.relationship.parent.id` matches the expected direct parent;
- `app.relationship.status` is appropriate for your intended use; and
- the returned metadata matches your onboarding record.

The relationship object is the public record of direct placement. It does not tell you who controls credentials, prove wider organizational hierarchy, or grant the parent access to every child resource. Keep the ownership decision in your registry and enforce tenant isolation in your own control plane.

If verification fails, keep the tenant disabled in your product. Preserve the API request ID, compare the stored app ID and secret reference, and retry only the read operation. Do not create a replacement child until you know whether the first creation succeeded.

## Complete the operating setup

App creation is not the same as readiness to take payments or send payouts. After identity verification:

1. Review the public `app.capabilities` returned by the Apps API using the child key.
2. Treat restricted or unavailable capabilities as real setup state; do not hide them behind a successful app-creation response.
3. If the policy beta is enabled, confirm that the returned operating-policy snapshot matches the intended selection.
4. Configure payment methods, financial accounts, and payout destinations only within the child app that owns those resources.
5. Run a non-production integration test with non-production credentials before enabling customer traffic.

Simile can validate the public request and response shapes for app operations and exercise synthetic creation locally. It cannot prove that a production account has private-beta access, that delegated placement is authorized, that a key reached the intended human owner, or that live financial capabilities are enabled.

## Operate the child safely

Use [Update an app](https://studio.inttegro.dev/machine/java/api/apps.md#update-an-app) for mutable metadata and, when enabled, for replacing the operating-policy snapshot. That endpoint does not move resources, change the direct parent, or rotate keys.

Use the [Keys API](https://studio.inttegro.dev/machine/java/api/keys.md) for subsequent credential lifecycle work. A safe rotation process issues a replacement into the same secret store, deploys it to the trusted server, verifies it, then disables the old key. Never destroy the only working credential before the replacement has been proven.

The public Apps API does not expose a general delete, reparent, or relationship-policy update operation. Do not promise those actions in your customer onboarding UI. If your offboarding model depends on one, confirm the supported process with Inttegro before launch.

## Acceptance checklist

| Check                  | Evidence to retain                                                                                        |
| ---------------------- | --------------------------------------------------------------------------------------------------------- |
| Boundary is correct    | Approved boundary record naming purpose, environment, resource scope, and settlement owner.               |
| Owners are explicit    | Credential and management owners recorded before creation.                                                |
| Secret is protected    | Secret-manager reference exists; plaintext is absent from logs, databases, tickets, and client responses. |
| Identity is verified   | Child-authenticated lookup matches the created app and expected direct parent.                            |
| Capabilities are known | Capability response reviewed before customer traffic is enabled.                                          |
| Recovery is possible   | Onboarding attempt, app ID, relationship ID, and API request ID are available without exposing the token. |

## Recover incomplete onboarding

Make recovery depend on the last verified fact, not on a generic “retry” button.

| Last known fact                                  | Safe next action                                                                       | Action to avoid                                                                 |
| ------------------------------------------------ | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| No create request was sent                       | Send the reviewed request recorded for the onboarding attempt                          | Rebuilding a different request from partial operator input                      |
| Request was sent but the response was lost       | Stop and reconcile the unknown result through a supported recovery path                | Repeating creation and risking a second app because the first result is unknown |
| App ID was stored but the token was not captured | Stop onboarding and determine the supported credential recovery path before continuing | Expecting app lookup to reveal the create-only token                            |
| Token was stored but identity was not verified   | Call app lookup with that token and compare the returned app ID and parent             | Sending customer traffic before the key's identity is known                     |
| Identity was verified but configuration failed   | Keep the tenant disabled and retry only the failed configuration step                  | Recreating the app and leaving two live identities                              |
| Secret delivery to a child owner is uncertain    | Treat delivery as incomplete and use an authenticated, auditable delivery mechanism    | Resending plaintext through email or chat                                       |

Store onboarding state and error summaries without storing request authorization headers or the plaintext child token. Preserve Inttegro request IDs because they let support correlate a failure without receiving your secrets.

## Design operator access

Most credential incidents begin in operator tooling rather than the API call itself. An internal onboarding screen should display the app ID, relationship status, configuration state, and secret-store reference—not the bearer token. Restrict creation and rotation actions to operators whose role requires them, and require a second review when credential ownership or settlement responsibility changes.

Do not add a “show secret” feature merely because the secret manager can return the value. Services that need the child credential should load it at execution time; humans usually need to know that a secret exists and when it was issued, not read it. Redact authorization headers in HTTP tracing before enabling app creation in production.

Exercise recovery in non-production: interrupt the request after sending it, simulate secret-store failure, retry verification, and confirm that the workflow produces one child app and no plaintext logs. This test is at least as important as the successful onboarding path.

## Related resources

- [Create an app](https://studio.inttegro.dev/machine/java/api/apps.md#create-an-app) - Exact create request, defaults, response, and errors.
- [Lookup an app](https://studio.inttegro.dev/machine/java/api/apps.md#lookup-an-app) - Verify the identity represented by a key.
- [Keys](https://studio.inttegro.dev/machine/java/api/keys.md) - Generate, update, and destroy app credentials.
- [Authentication](https://studio.inttegro.dev/machine/java/api/authentication.md) - Store and use bearer credentials safely.
- [Govern child apps with policies](https://studio.inttegro.dev/machine/java/guides/govern-child-apps-with-policies.md) - Select and reapply operating configuration.
