Endpoints챌린지

챌린지용 새 OTP 생성

이 API는 지정된 챌린지에 대한 새 일회용 비밀번호(OTP)를 생성하는 데 사용됩니다.

POST
/challenge/generate-otp
AuthorizationBearer <token>

In: header

Header Parameters

Kid-Target-Product-Id?integer

계정 시스템 제품이 제품 간 연령 게이트 확인을 수행할 때 사용하는 선택적 헤더입니다. 값은 같은 조직 내 대상 제품의 제품 ID여야 합니다. 대상 제품 자체는 계정 시스템 제품이 아니어야 합니다.

Request Body

application/json

챌린지 상태 설정 요청

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/challenge/generate-otp" \  -H "Content-Type: application/json" \  -d '{    "challengeId": "b1a6482d-5242-4b4a-aa88-3fa52595a672"  }'
{  "otp": "123ABC",  "expiresAt": "2022-12-31T23:59:59Z",  "url": "https://example.com/challenge"}