Two-factor authentication

You can find every API used by the two-factor authentication product on a single page.
It walks through service name management, requesting and verifying a verification code, and looking up results, in that order.

Use the service name management API when you want to show a service name in the message that carries the verification code.

Register a service name

POST/api/verify/v1/2fa/service/regist

Registers the service name shown in verification code messages. The service name can be up to 20 bytes (Korean characters count as 2 bytes; letters, digits, and spaces count as 1 byte).

Body Parameters

{}JSON

serviceName

RequiredString

The service name.

userRef

String

A custom reference value you define.

Returns

common

Object

The common response section.

data

Object

The 2FA response data.

Request example

1curl -X POST "https://mars.ibapi.kr/api/verify/v1/2fa/service/regist" \
2 -H "Authorization: {ApiKey}" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "serviceName": "๋น„์ฆˆ๊ณ ",
6 "userRef": "verify-service-regist-001"
7 }'

Response example

1{
2 "common": {
3 "authCode":"A000",
4 "authResult":"Success",
5 "infobankTrId":"Infobank-Tracking-Id"
6 },
7 "data": {
8 "code":"A000",
9 "result":"SUCCESS",
10 "resultMsg":"์„ฑ๊ณต",
11 "serviceName":"๋น„์ฆˆ๊ณ ",
12 "userRef":"verify-service-regist-001"
13 }
14}

Look up service names

POST/api/verify/v1/2fa/service

Looks up the currently registered service name. If no service name is registered, an empty string is returned.

Body Parameters

{}JSON

userRef

String

A custom reference value you define.

Returns

common

Object

The common response section.

data

Object

The 2FA response data.

Request example

1curl -X POST "https://mars.ibapi.kr/api/verify/v1/2fa/service" \
2 -H "Authorization: {ApiKey}" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "userRef": "verify-service-list-001"
6 }'

Response example

1{
2 "common": {
3 "authCode":"A000",
4 "authResult":"Success",
5 "infobankTrId":"Infobank-Tracking-Id"
6 },
7 "data": {
8 "code":"A000",
9 "result":"SUCCESS",
10 "resultMsg":"์„ฑ๊ณต",
11 "serviceName":"๋น„์ฆˆ๊ณ ",
12 "regDate":"2026-03-31 10:39:11",
13 "userRef":"verify-service-list-001"
14 }
15}

Delete a service name

POST/api/verify/v1/2fa/service/delete

Deletes the registered service name. Verification messages sent afterwards no longer include the service name.

Body Parameters

{}JSON

userRef

String

A custom reference value you define.

Returns

common

Object

The common response section.

data

Object

The 2FA response data.

Request example

1curl -X POST "https://mars.ibapi.kr/api/verify/v1/2fa/service/delete" \
2 -H "Authorization: {ApiKey}" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "userRef": "verify-service-delete-001"
6 }'

Response example

1{
2 "common": {
3 "authCode":"A000",
4 "authResult":"Success",
5 "infobankTrId":"Infobank-Tracking-Id"
6 },
7 "data": {
8 "code":"A000",
9 "result":"SUCCESS",
10 "resultMsg":"์„ฑ๊ณต",
11 "userRef":"verify-service-delete-001"
12 }
13}

Request a verification code

POST/api/verify/v1/2fa/request

Requests a verification code. The code is 6 digits and stays valid for 3 minutes. You can request it up to 5 times within those 3 minutes.

Body Parameters

{}JSON

to

RequiredString

The recipient number.

authNumber

String

A static OTP you specify when you need a fixed verification code.

userRef

String

A custom reference value you define.

Returns

common

Object

The common response section.

data

Object

The 2FA response data.

Request example

1curl -X POST "https://mars.ibapi.kr/api/verify/v1/2fa/request" \
2 -H "Authorization: {ApiKey}" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "to": "01000000000",
6 "userRef": "verify-request-001"
7 }'

Response example

1{
2 "common": {
3 "authCode":"A000",
4 "authResult":"Success",
5 "infobankTrId":"X-Infobank-Tracking-Id"
6 },
7 "data": {
8 "code":"A000",
9 "result":"SUCCESS",
10 "resultMsg":"์„ฑ๊ณต",
11 "requestId":"58f5edaf-0fc1-3ac7-8fe0-c4453abf0ba1",
12 "userRef":"verify-request-001"
13 }
14}

Verify

POST/api/verify/v1/2fa/verify

Verifies the code the user received.

Body Parameters

{}JSON

authNumber

RequiredString

The verification code.

to

RequiredString

The recipient number.

requestId

String

The verification key returned by the verification code request.

userRef

String

A custom reference value you define.

Returns

common

Object

The common response section.

data

Object

The 2FA response data.

Request example

1curl -X POST "https://mars.ibapi.kr/api/verify/v1/2fa/verify" \
2 -H "Authorization: {ApiKey}" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "authNumber": "123456",
6 "to": "01000000000",
7 "requestId": "58f5edaf-0fc1-3ac7-8fe0-c4453abf0ba1",
8 "userRef": "verify-check-001"
9 }'

Response example

1{
2 "common": {
3 "authCode":"A000",
4 "authResult":"Success",
5 "infobankTrId":"X-Infobank-Tracking-Id"
6 },
7 "data": {
8 "code":"A000",
9 "result":"SUCCESS",
10 "resultMsg":"์„ฑ๊ณต",
11 "requestId":"58f5edaf-0fc1-3ac7-8fe0-c4453abf0ba1",
12 "userRef":"verify-check-001"
13 }
14}

Look up results

POST/api/verify/v1/2fa/logs

Looks up the 2FA result history by request date.

Body Parameters

{}JSON

requestDate

RequiredString

The date the verification code was requested.

requestId

String

The verification key.

userRef

String

A custom reference value you define.

Returns

common

Object

The common response section.

data

Object

The 2FA response data.

Request example

1curl -X POST "https://mars.ibapi.kr/api/verify/v1/2fa/logs" \
2 -H "Authorization: {ApiKey}" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "requestDate": "20260331",
6 "requestId": "58f5edaf-0fc1-3ac7-8fe0-c4453abf0ba1",
7 "userRef": "verify-logs-001"
8 }'

Response example

1{
2 "common": {
3 "authCode":"A000",
4 "authResult":"Success",
5 "infobankTrId":"X-Infobank-Tracking-Id"
6 },
7 "data": {
8 "code":"A000",
9 "result":"SUCCESS",
10 "resultMsg":"์„ฑ๊ณต",
11 "userRef":"verify-logs-001",
12 "list": [
13 {
14 "requestDate":"2026-03-31 09:39:38",
15 "status":"PENDING",
16 "verifyDate":"",
17 "requestId":"58f5edaf-0fc1-3ac7-8fe0-c4453abf0ba1"
18 },
19 {
20 "requestDate":"2026-03-31 09:40:02",
21 "status":"SUCCESS",
22 "verifyDate":"2026-03-31 09:41:10",
23 "requestId":"58f5edaf-0fc1-3ac7-8fe0-c4453abf0ba2"
24 }
25 ]
26 }
27}