Endpoints위젯

부모 동의 URL 생성

iframe에 표시할 호스팅 보호자 동의 위젯의 URL을 반환합니다. 기존 챌린지의 보호자에게 제시하여 동의를 받습니다. `/challenge/send-email`이 연결하는 것과 동일한 경험이며, 링크를 직접 전달하려는 경우에 사용합니다.

POST
/widget/generate-parental-consent-url
AuthorizationBearer <token>

In: header

Request Body

application/json

부모 동의 URL 생성 요청

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/widget/generate-parental-consent-url" \  -H "Content-Type: application/json" \  -d '{    "challengeId": "ae6d4729-af32-42ea-8ef2-ff46c7664802",    "email": "parent@example.com"  }'
{  "url": "https://family.k-id.com/widget",  "shortUrl": "https://family.k-id.com/s/12345678-1234-1234-1234-123456789012?pid=42&s=qr"}