Simulate a source connection
/sourcesCreates a simulated source connection for a child in the hosted sandbox. This does not establish a generally available production integration; provisioned beta connections require a separate design-partner agreement.
BearerRequest body
child_idfamily_idsourceSource slug (e.g., 'bark', 'qustodio')
credentialsSource credentials (for managed sources)
auto_syncEnable automatic sync on policy changes
Response
idUnique identifier for this resource.
child_idIdentifier of the child this resource belongs to.
family_idIdentifier of the family this resource belongs to.
source_slugStable slug identifying the source platform (e.g. `nextdns`).
display_nameHuman-readable name of the source platform.
api_tierOne of: managed, guided.
statusCurrent lifecycle state of the resource.
auto_syncWhether sandbox policy changes automatically schedule a simulated source-sync job.
capabilitiesRule categories represented by this source fixture or scoped for design-partner adapter evaluation.
configCategory-specific configuration object for this rule.
last_sync_atRFC 3339 timestamp.
last_sync_statusOutcome of the most recent sync (e.g. `success`, `error`).
sync_versionMonotonic counter incremented on each successful sync.
error_messageHuman-readable error detail when the operation failed; null on success.
created_atRFC 3339 timestamp of when the resource was created.
updated_atRFC 3339 timestamp of the resource's most recent update.
curl -sS -X POST "https://phosra-api-sandbox-production.up.railway.app/api/v1/sources" \
-H "Authorization: Bearer $PHOSRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"child_id": "a11ce0fa-0000-4000-8000-0000000000a1",
"family_id": "f0000000-0000-4000-8000-0000000000f1",
"source": "fire_tablet",
"auto_sync": true
}'{
"id": "550e8400-e29b-41d4-a716-446655440000",
"child_id": "550e8400-e29b-41d4-a716-446655440000",
"family_id": "550e8400-e29b-41d4-a716-446655440000",
"source_slug": "string",
"display_name": "string",
"api_tier": "managed",
"status": "pending",
"auto_sync": true,
"capabilities": [
{
"category": "rating_age_gate",
"support_level": "full",
"read_write": "push_only",
"notes": "string"
}
],
"config": {},
"last_sync_at": null,
"last_sync_status": null,
"sync_version": 0,
"error_message": null,
"created_at": "2025-01-15T09:30:00Z",
"updated_at": "2025-01-15T09:30:00Z"
}