API Reference
모바일 게이트웨이 enroll 토큰 발급
BT 휴대폰 게이트웨이(chan_mobile 박스)를 이 계정에 등록하기 위한 1회용 enroll 토큰을 발급한다. 반환된 평문 토큰을 박스 control-agent 에 붙여넣으면 박스가 WireGuard 키를 로컬 생성해 콜홈 (POST /v1/mobile-gateways/enroll)한다. 토큰은 24시간·단일사용, DB 엔 sha256 해시만 저장.
Authorization
BearerAuth AuthorizationBearer <token>
API Key를 Bearer 토큰으로 전달
In: header
Path Parameters
accountId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
didNumber?string
이 게이트웨이가 쓸 발신 DID(선택). 미지정 시 enroll 후 콘솔에서 배정.
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/accounts/AC1a2b3c4d/mobile-gateways/enrollment-tokens" \ -H "Content-Type: application/json" \ -d '{}'{
"token": "3sHk9_Qx1mZ0pN7rTvbY2aWcE4fGhJkLmNpQrStUvWx",
"expiresAt": "2019-08-24T14:15:22Z"
}{
"error": "string",
"code": "INVALID_PHONE_NUMBER"
}