Register a test to an account
register_testRegisters a test you built earlier to the organization a publishable key belongs to, so it shows under My tests and its stats are readable from the dashboard without the secret.
Use this only when the user provides both the test's stats secret and a publishable key for an organization they administer. The stats secret must match the hash inside the config, and the publishable key identifies the organization to register into. Prefer passing publishableKey to build_test directly: it registers at creation in one step. Keyless tests cannot be registered this way (nothing to prove with); they register through the tag on a verified domain. The organization can remove a listing from its dashboard (the test itself keeps serving).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | The encoded test config (from build_test or any test URL). | |
| statsSecret | Yes | The test's stats secret, exactly as build_test returned it. | |
| publishableKey | Yes | A publishable key for the target organization, provided by a user authorized to register tests there. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | Yes | The organization that now owns the test. | |
| testId | Yes | ||
| registered | Yes |