Skip to main content
POST

Authorizations

Authorization
string
header
required

조직 API 키를 Authorization: Bearer <token> 형식으로 보냅니다.

Body

application/json

custom SIP 전화번호 등록 요청입니다.

custom SIP endpoint 등록 요청.

에이전트 매핑은 등록 후 PATCH /{organization_telephone_number_id}/agent 로 별도 설정합니다.

number
string
required

등록할 전화번호입니다. 하이픈 없이 입력합니다.

Required string length: 1 - 20
Pattern: ^\d+$
address
string
required

SIP trunk 연동에 사용할 SIP 주소입니다.

auth_username
string | null

SIP trunk 인증에 사용할 사용자명입니다.

auth_password
string | null

SIP trunk 인증에 사용할 비밀번호입니다.

memo
string | null

전화번호에 대한 메모입니다. 최대 200자.

Maximum string length: 200

Response

성공 응답

조직 보유 전화번호 응답입니다.

id
string
required

전화번호 레코드의 고유 식별자입니다.

number
string
required

등록된 전화번호입니다. 하이픈 없는 숫자 문자열로 반환됩니다.

provider
enum<string>
required

번호 제공자 구분입니다. 'vox'(vox.ai 구매 번호) 또는 'custom'(자체 보유 번호) 중 하나입니다.

Available options:
vox,
custom
status
enum<string>
required

번호의 현재 상태를 나타냅니다. 'active'(사용 중), 'scheduled'(예약됨), 'cancel_requested'(해지 요청됨), 'expired'(만료됨) 중 하나입니다.

Available options:
active,
scheduled,
cancel_requested,
expired
start_at
integer
required

전화번호 서비스 시작일입니다. unix timestamp (ms).

created_at
integer
required

리소스 생성 시각입니다. unix milliseconds 형식입니다.

updated_at
integer
required

리소스 마지막 수정 시각입니다. unix milliseconds 형식입니다.

monthly_fee
integer | null

월 사용료입니다. 단위는 원(KRW)이며, provider가 'custom'인 경우 null일 수 있습니다.

address
string | null

SIP trunk 연동 주소입니다. SIP 설정이 없으면 null입니다.

inbound_trunk_id
string | null

인바운드 SIP trunk의 고유 식별자입니다. SIP 설정이 없으면 null입니다.

outbound_trunk_id
string | null

아웃바운드 SIP trunk의 고유 식별자입니다. SIP 설정이 없으면 null입니다.

inbound_agent
AgentMapping · object | null

이 번호에 매핑된 인바운드 에이전트 정보입니다. 매핑이 없으면 null입니다.

outbound_agent
AgentMapping · object | null

이 번호에 매핑된 아웃바운드 에이전트 정보입니다. 매핑이 없으면 null입니다.

memo
string | null

전화번호에 대한 메모입니다. 설정되지 않았으면 null입니다.

end_at
integer | null

전화번호 서비스 종료일입니다. unix timestamp (ms). 해지 예약이 없으면 null입니다.

cancel_requested_at
integer | null

해지 요청이 접수된 일시입니다. unix timestamp (ms). 해지 요청이 없으면 null입니다.