Start GitHub connection before claiming
const url = 'https://testperch.com/api/public/v1/onboardings/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/github-connections';const options = { method: 'POST', headers: { 'X-Onboarding-Claim': '<X-Onboarding-Claim>', 'Content-Type': 'application/json' }, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://testperch.com/api/public/v1/onboardings/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/github-connections \ --header 'Content-Type: application/json' \ --header 'X-Onboarding-Claim: <X-Onboarding-Claim>' \ --data '{}'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{}Responses
Section titled “Responses”Requires X-Onboarding-Claim, never a project API key. Returns a short-lived person-facing confirmation link without requiring TestPerch login or a browser handoff. GET previews do not consume it; a same-origin confirmation POST sets a separate Secure HttpOnly browser binding. New attempts supersede all unfinished onboarding connections, including pending approval; each uses fresh OAuth state/PKCE and a new immutable installation selection. Does not claim the workspace or alter account sessions. Send an empty JSON object. No query parameters.
object
Example
{ "status": "awaiting_confirmation", "failure_code": "authorization_denied"}Invalid request. Secret values are never echoed.
object
object
object
Example
{ "error": { "code": "invalid_request" }}Onboarding is closed, claim proof is invalid, or the connection belongs to another workspace.
object
object
object
Example
{ "error": { "code": "invalid_request" }}The connection state changed. Read status and follow next_action.
object
object
object
Example
{ "error": { "code": "invalid_request" }}Temporary authorization expired while processing. Create a fresh connection if onboarding is still active; after claiming use workspace settings.
object
object
object
Example
{ "error": { "code": "invalid_request" }}JSON request body exceeds 4096 bytes.
object
object
object
Example
{ "error": { "code": "invalid_request" }}Credential or workspace rate limit exceeded.
object
object
object
Example
{ "error": { "code": "invalid_request" }}Headers
Section titled “Headers”Seconds before retrying.
Seconds before retrying.
GitHub connection could not be processed. Retry status before creating a fresh connection.
object
object
object
Example
{ "error": { "code": "invalid_request" }}GitHub configuration or verification is temporarily unavailable. Retry with a fresh connection link.
object
object
object
Example
{ "error": { "code": "invalid_request" }}