Introduction
Welcome to the Aksara Data Digital Documentation! You can use our API to access Aksara Data Digital Documentation endpoints.
We have language bindings in Shell, PHP, Python! You can view code examples in the dark area to the right, and you can switch the programming language of the examples with the tabs in the top right.
Production Environtment
https://api6.irsfa.id
Sandbox Environtment
http://api2.sandbox.irsfa.id
Authentication
OAUTH 2.0
Irsfa APIs is using OAuth 2.0 as the authorization framework. To get the access token, you need to be authorized by client_id and client_secret. To learn more about the OAuth 2.0 authorization framework, you can read the RFC6749 Documentation.
Access Token
access_token
is an opaque string token that identify the user of the API. This token is required each time an application call API. There are several way to obtain an access_token
, which will be described bellow.
Obtaining Access Token
Access token can be obtained in many way, depend on the grant_type
of the application. To access all the services in this sandbox, you will need the access token with grant_type = client_credentials
.
Client Credentials Grant
client_credentials
grant will provide application access to API without requiring any user credential. Any call requested using access_token
obtained using this method are made on behalf of the application instead of the user.
This grant type is designed to be used by server to server call. In order to obtain access_token
a request must be made with following specification
Example request:
curl --request POST \
"https://api6.irsfa.id/api/oauth/token" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"grant_type\": \"client_credentials\",
\"client_id\": \"your_client_id\",
\"client_secret\": \"your_client_secret\",
\"scope\": \"\'\'\"
}"
const url = new URL(
"https://api6.irsfa.id/api/oauth/token"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"grant_type": "client_credentials",
"client_id": "your_client_id",
"client_secret": "your_client_secret",
"scope": "''"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/oauth/token',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'grant_type' => 'client_credentials',
'client_id' => 'your_client_id',
'client_secret' => 'your_client_secret',
'scope' => '\'\'',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/oauth/token'
payload = {
"grant_type": "client_credentials",
"client_id": "your_client_id",
"client_secret": "your_client_secret",
"scope": "''"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"token_type": "Bearer",
"expires_in": 31622400,
"access_token": "your access_token"
}
Example response (404, invalid user):
{
"error": "invalid_client",
"message": "Client authentication failed"
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
token_type
|
string |
default is |
expires_in
|
integer |
|
access_token
|
string |
your |
Contact
Create Contact
This endpoint create new registrant/contact in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/domain/contact/create" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"company_name\": \"Your Company\",
\"first_name\": \"Jhon\",
\"last_name\": \"Doe\",
\"gender\": \"M\",
\"telephone_number\": \"+6282111111111\",
\"street\": \"Your Street Address\",
\"number\": 19,
\"zip_code\": 41111,
\"city\": \"Jakarata Selatan\",
\"state\": \"DKI Jakarata\",
\"country\": \"ID\",
\"email\": \"yourvalidemail@example.com\",
\"locale\": \"en_GB\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/contact/create"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"company_name": "Your Company",
"first_name": "Jhon",
"last_name": "Doe",
"gender": "M",
"telephone_number": "+6282111111111",
"street": "Your Street Address",
"number": 19,
"zip_code": 41111,
"city": "Jakarata Selatan",
"state": "DKI Jakarata",
"country": "ID",
"email": "yourvalidemail@example.com",
"locale": "en_GB"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/domain/contact/create',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'company_name' => 'Your Company',
'first_name' => 'Jhon',
'last_name' => 'Doe',
'gender' => 'M',
'telephone_number' => '+6282111111111',
'street' => 'Your Street Address',
'number' => 19,
'zip_code' => 41111,
'city' => 'Jakarata Selatan',
'state' => 'DKI Jakarata',
'country' => 'ID',
'email' => 'yourvalidemail@example.com',
'locale' => 'en_GB',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/contact/create'
payload = {
"company_name": "Your Company",
"first_name": "Jhon",
"last_name": "Doe",
"gender": "M",
"telephone_number": "+6282111111111",
"street": "Your Street Address",
"number": 19,
"zip_code": 41111,
"city": "Jakarata Selatan",
"state": "DKI Jakarata",
"country": "ID",
"email": "yourvalidemail@example.com",
"locale": "en_GB"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfull Create Contact!",
"data": {
"no_contact": "contact_id"
}
}
Example response (422, unprocessable content):
{
"code": 422,
"message": "The given data was invalid.",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
Response code |
message
|
string |
Success/error message |
data
|
string[] |
(array) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Update Contact
This endpoint update registrant/contact in your account. Your Request must contain following information:
Example request:
curl --request PUT \
"https://api6.irsfa.id/api/rest/v3/domain/contact/update" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"contact_id\": \"Your Contatc Id\",
\"telephone_number\": \"+628111111111\",
\"street\": \"Your Street Address\",
\"number\": 19,
\"zip_code\": 41111,
\"city\": \"Jakarata Selatan\",
\"state\": \"DKI Jakarata\",
\"country\": \"ID\",
\"email\": \"yourvalidemail@example.com\",
\"locale\": \"en_GB\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/contact/update"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"contact_id": "Your Contatc Id",
"telephone_number": "+628111111111",
"street": "Your Street Address",
"number": 19,
"zip_code": 41111,
"city": "Jakarata Selatan",
"state": "DKI Jakarata",
"country": "ID",
"email": "yourvalidemail@example.com",
"locale": "en_GB"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api6.irsfa.id/api/rest/v3/domain/contact/update',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'contact_id' => 'Your Contatc Id',
'telephone_number' => '+628111111111',
'street' => 'Your Street Address',
'number' => 19,
'zip_code' => 41111,
'city' => 'Jakarata Selatan',
'state' => 'DKI Jakarata',
'country' => 'ID',
'email' => 'yourvalidemail@example.com',
'locale' => 'en_GB',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/contact/update'
payload = {
"contact_id": "Your Contatc Id",
"telephone_number": "+628111111111",
"street": "Your Street Address",
"number": 19,
"zip_code": 41111,
"city": "Jakarata Selatan",
"state": "DKI Jakarata",
"country": "ID",
"email": "yourvalidemail@example.com",
"locale": "en_GB"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {
"no_contact": "contact_id"
}
}
Example response (422, unprocessable content):
{
"code": 422,
"message": "The given data was invalid.",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
Response code |
message
|
string |
Success/error message |
data
|
string[] |
(array) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Domain
Check Domain
This endpoint is used to get domain availability. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/domain/availability" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"domain_name\": \"yourdomain\",
\"domain_extension\": \"id\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/availability"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"domain_name": "yourdomain",
"domain_extension": "id"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/domain/availability',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'domain_name' => 'yourdomain',
'domain_extension' => 'id',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/availability'
payload = {
"domain_name": "yourdomain",
"domain_extension": "id"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (404, not found):
{
"code": 404,
"message": "Data not found.",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Domain Info
Get domain information in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/domain/info" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"domain_name\": \"yourdomain\",
\"domain_extension\": \"id\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/info"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"domain_name": "yourdomain",
"domain_extension": "id"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/domain/info',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'domain_name' => 'yourdomain',
'domain_extension' => 'id',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/info'
payload = {
"domain_name": "yourdomain",
"domain_extension": "id"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {
"domain": "yourdomain.id",
"status_domain": "Active",
...
}
}
Example response (404, not found):
{
"code": 404,
"message": "Domain not found in your account!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
string[] |
(array) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Register Domain
This endpoint is used to create new domain in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/domain/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"domain_name\": \"yourdomain\",
\"domain_extension\": \"id\",
\"period\": 1,
\"nameserver\": [
\"aut\"
],
\"description\": \"Register Domain\",
\"company_name\": \"Your Company\",
\"initial\": \"J.D\",
\"first_name\": \"Jhon\",
\"last_name\": \"Doe\",
\"gender\": \"M\",
\"street\": \"Your Street Address\",
\"number\": 19,
\"city\": \"Jakarata Selatan\",
\"state\": \"DKI Jakarata\",
\"zip_code\": 41111,
\"country\": \"ID\",
\"email\": \"yourvalidemail@example.com\",
\"telephone_number\": \"+6282111111111\",
\"locale\": \"en_GB\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"domain_name": "yourdomain",
"domain_extension": "id",
"period": 1,
"nameserver": [
"aut"
],
"description": "Register Domain",
"company_name": "Your Company",
"initial": "J.D",
"first_name": "Jhon",
"last_name": "Doe",
"gender": "M",
"street": "Your Street Address",
"number": 19,
"city": "Jakarata Selatan",
"state": "DKI Jakarata",
"zip_code": 41111,
"country": "ID",
"email": "yourvalidemail@example.com",
"telephone_number": "+6282111111111",
"locale": "en_GB"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/domain/register',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'domain_name' => 'yourdomain',
'domain_extension' => 'id',
'period' => 1,
'nameserver' => [
'aut',
],
'description' => 'Register Domain',
'company_name' => 'Your Company',
'initial' => 'J.D',
'first_name' => 'Jhon',
'last_name' => 'Doe',
'gender' => 'M',
'street' => 'Your Street Address',
'number' => 19,
'city' => 'Jakarata Selatan',
'state' => 'DKI Jakarata',
'zip_code' => 41111,
'country' => 'ID',
'email' => 'yourvalidemail@example.com',
'telephone_number' => '+6282111111111',
'locale' => 'en_GB',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/register'
payload = {
"domain_name": "yourdomain",
"domain_extension": "id",
"period": 1,
"nameserver": [
"aut"
],
"description": "Register Domain",
"company_name": "Your Company",
"initial": "J.D",
"first_name": "Jhon",
"last_name": "Doe",
"gender": "M",
"street": "Your Street Address",
"number": 19,
"city": "Jakarata Selatan",
"state": "DKI Jakarata",
"zip_code": 41111,
"country": "ID",
"email": "yourvalidemail@example.com",
"telephone_number": "+6282111111111",
"locale": "en_GB"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {
"domain": "yourdomain.id",
"invoice_no": "IN-Q111123456"
}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
string[] |
(array) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Renew Domain
Renew domain in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/domain/renew" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"domain_name\": \"yourdomain\",
\"domain_extension\": \"id\",
\"period\": 1,
\"description\": \"Register Domain\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/renew"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"domain_name": "yourdomain",
"domain_extension": "id",
"period": 1,
"description": "Register Domain"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/domain/renew',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'domain_name' => 'yourdomain',
'domain_extension' => 'id',
'period' => 1,
'description' => 'Register Domain',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/renew'
payload = {
"domain_name": "yourdomain",
"domain_extension": "id",
"period": 1,
"description": "Register Domain"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (422, unprocessable content):
{
"code": 422,
"message": "The given data was invalid.",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Transfer Domain
Use this endpoint to transfer domain in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/domain/transfer" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"domain_name\": \"yourdomain\",
\"domain_extension\": \"id\",
\"epp\": \"1234AA?bbb5c6d7:e\",
\"nameserver\": [
\"corporis\"
],
\"description\": \"Transfer domain to x\",
\"company_name\": \"Your Company\",
\"first_name\": \"Jhon\",
\"last_name\": \"Doe\",
\"gender\": \"M\",
\"street\": \"Your Street Address\",
\"number\": 19,
\"city\": \"Jakarata Selatan\",
\"state\": \"DKI Jakarata\",
\"zip_code\": 41111,
\"country\": \"ID\",
\"email\": \"yourvalidemail@example.com\",
\"telephone_number\": \"+6282111111111\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/transfer"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"domain_name": "yourdomain",
"domain_extension": "id",
"epp": "1234AA?bbb5c6d7:e",
"nameserver": [
"corporis"
],
"description": "Transfer domain to x",
"company_name": "Your Company",
"first_name": "Jhon",
"last_name": "Doe",
"gender": "M",
"street": "Your Street Address",
"number": 19,
"city": "Jakarata Selatan",
"state": "DKI Jakarata",
"zip_code": 41111,
"country": "ID",
"email": "yourvalidemail@example.com",
"telephone_number": "+6282111111111"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/domain/transfer',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'domain_name' => 'yourdomain',
'domain_extension' => 'id',
'epp' => '1234AA?bbb5c6d7:e',
'nameserver' => [
'corporis',
],
'description' => 'Transfer domain to x',
'company_name' => 'Your Company',
'first_name' => 'Jhon',
'last_name' => 'Doe',
'gender' => 'M',
'street' => 'Your Street Address',
'number' => 19,
'city' => 'Jakarata Selatan',
'state' => 'DKI Jakarata',
'zip_code' => 41111,
'country' => 'ID',
'email' => 'yourvalidemail@example.com',
'telephone_number' => '+6282111111111',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/transfer'
payload = {
"domain_name": "yourdomain",
"domain_extension": "id",
"epp": "1234AA?bbb5c6d7:e",
"nameserver": [
"corporis"
],
"description": "Transfer domain to x",
"company_name": "Your Company",
"first_name": "Jhon",
"last_name": "Doe",
"gender": "M",
"street": "Your Street Address",
"number": 19,
"city": "Jakarata Selatan",
"state": "DKI Jakarata",
"zip_code": 41111,
"country": "ID",
"email": "yourvalidemail@example.com",
"telephone_number": "+6282111111111"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Restore Domain
This endpoint is used to restore domain in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/domain/restore" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"domain_name\": \"yourdomain\",
\"domain_extension\": \"id\",
\"period\": 1,
\"description\": \"Register Domain\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/restore"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"domain_name": "yourdomain",
"domain_extension": "id",
"period": 1,
"description": "Register Domain"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/domain/restore',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'domain_name' => 'yourdomain',
'domain_extension' => 'id',
'period' => 1,
'description' => 'Register Domain',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/restore'
payload = {
"domain_name": "yourdomain",
"domain_extension": "id",
"period": 1,
"description": "Register Domain"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Update Lock/Unlock Domain
This endpoint used to lock or unlock domain in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/domain/lock" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"domain_name\": \"yourdomain\",
\"domain_extension\": \"id\",
\"status\": 0
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/lock"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"domain_name": "yourdomain",
"domain_extension": "id",
"status": 0
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/domain/lock',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'domain_name' => 'yourdomain',
'domain_extension' => 'id',
'status' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/lock'
payload = {
"domain_name": "yourdomain",
"domain_extension": "id",
"status": 0
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": "Domain unlocked!"
}
Example response (422, unprocessable content):
{
"code": 422,
"message": "The given data was invalid.",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
string |
Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Get Epp Code
This endpoint is used to get EPP code of your domain. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/domain/eppcode" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"domain_name\": \"yourdomain\",
\"domain_extension\": \"id\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/eppcode"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"domain_name": "yourdomain",
"domain_extension": "id"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/domain/eppcode',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'domain_name' => 'yourdomain',
'domain_extension' => 'id',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/eppcode'
payload = {
"domain_name": "yourdomain",
"domain_extension": "id"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": "AAb1abAb"
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
string |
Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Update Domain Host
Use this endpoint to update domain nameserver in your account. Your Request must contain following information:
Example request:
curl --request PUT \
"https://api6.irsfa.id/api/rest/v3/domain/modify/ns" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"domain_name\": \"yourdomain\",
\"domain_extension\": \"id\",
\"nameserver\": [
\"omnis\"
]
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/modify/ns"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"domain_name": "yourdomain",
"domain_extension": "id",
"nameserver": [
"omnis"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api6.irsfa.id/api/rest/v3/domain/modify/ns',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'domain_name' => 'yourdomain',
'domain_extension' => 'id',
'nameserver' => [
'omnis',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/modify/ns'
payload = {
"domain_name": "yourdomain",
"domain_extension": "id",
"nameserver": [
"omnis"
]
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": "Successfully modfy nameserver."
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
string |
Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Upload Document Domain Terms
This endpoint upload domain document terms in your account. Your Request must contain following information:
List Of Document Id:
1 = KTP
2 = Driving License
3 = Pasport
4 = TDP (Company Registration Cetificate)
5 = VAT (Value Added Tax)
6 = Authorization & Declaration Letter
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/domain/doc/term/upload" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"domain_name\": \"yourdomain\",
\"domain_extension\": \"com\",
\"document_id\": \"1\",
\"document_name\": \"my_ktp\",
\"document_description\": \"my_ktp Upload\",
\"file\": \"path\\/to\\/fileupload.jpg\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/doc/term/upload"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"domain_name": "yourdomain",
"domain_extension": "com",
"document_id": "1",
"document_name": "my_ktp",
"document_description": "my_ktp Upload",
"file": "path\/to\/fileupload.jpg"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/domain/doc/term/upload',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'domain_name' => 'yourdomain',
'domain_extension' => 'com',
'document_id' => '1',
'document_name' => 'my_ktp',
'document_description' => 'my_ktp Upload',
'file' => 'path/to/fileupload.jpg',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/doc/term/upload'
payload = {
"domain_name": "yourdomain",
"domain_extension": "com",
"document_id": "1",
"document_name": "my_ktp",
"document_description": "my_ktp Upload",
"file": "path\/to\/fileupload.jpg"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": [
{
"client_id": "client id",
"domain": "yourdomain.com",
"key_tag": "11111",
"alg": "",
"digest_type": "",
"digest": "123ABC123ABCBC12AB3CABC123AB12C3A123BC12",
"updated_at": "",
"created_at": ""
},
...
]
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Host
Info Host/Nameserver
Use this endpoint to get host info in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/domain/nameserver/get" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"host\": \"ns.mydomain.com\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/nameserver/get"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"host": "ns.mydomain.com"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/domain/nameserver/get',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'host' => 'ns.mydomain.com',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/nameserver/get'
payload = {
"host": "ns.mydomain.com"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Create Host/Nameserver
Use this endpoint to create nameserver in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/domain/nameserver/create" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"host\": \"ns.mydomain.com\",
\"ipv4\": \"123.23.23.23\",
\"ipv6\": \"1234:0:0:0:5:600:700C:890A\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/nameserver/create"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"host": "ns.mydomain.com",
"ipv4": "123.23.23.23",
"ipv6": "1234:0:0:0:5:600:700C:890A"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/domain/nameserver/create',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'host' => 'ns.mydomain.com',
'ipv4' => '123.23.23.23',
'ipv6' => '1234:0:0:0:5:600:700C:890A',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/nameserver/create'
payload = {
"host": "ns.mydomain.com",
"ipv4": "123.23.23.23",
"ipv6": "1234:0:0:0:5:600:700C:890A"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Delete Host/Nameserver
Use this endpoint to delete nameserver in your account. Your Request must contain following information:
Example request:
curl --request DELETE \
"https://api6.irsfa.id/api/rest/v3/domain/nameserver/delete" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"nameserver_id\": 1234,
\"host\": \"ns.mydomain.com\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/nameserver/delete"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"nameserver_id": 1234,
"host": "ns.mydomain.com"
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api6.irsfa.id/api/rest/v3/domain/nameserver/delete',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'nameserver_id' => 1234,
'host' => 'ns.mydomain.com',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/nameserver/delete'
payload = {
"nameserver_id": 1234,
"host": "ns.mydomain.com"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
DNSSEC
Get Detail
Use this endpoint to get DNSSEC. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/domain/dnssec/get" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"domain_name\": \"yourdomain\",
\"domain_extension\": \".com\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/dnssec/get"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"domain_name": "yourdomain",
"domain_extension": ".com"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/domain/dnssec/get',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'domain_name' => 'yourdomain',
'domain_extension' => '.com',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/dnssec/get'
payload = {
"domain_name": "yourdomain",
"domain_extension": ".com"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": [
{
"client_id": "client id",
"domain": "yourdomain.com",
"key_tag": "11111",
"alg": "",
"digest_type": "",
"digest": "123ABC123ABCBC12AB3CABC123AB12C3A123BC12",
"updated_at": "",
"created_at": ""
},
...
]
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Create
Use this endpoint to create DNSSEC. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/domain/dnssec/create" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"domain_name\": \"yourdomain\",
\"domain_extension\": \".com\",
\"key_tag\": \"54321\",
\"alg\": 8,
\"digest_type\": 1,
\"digest\": \"123ABC123ABCBC12AB3CABC123AB12C3A123BC12\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/dnssec/create"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"domain_name": "yourdomain",
"domain_extension": ".com",
"key_tag": "54321",
"alg": 8,
"digest_type": 1,
"digest": "123ABC123ABCBC12AB3CABC123AB12C3A123BC12"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/domain/dnssec/create',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'domain_name' => 'yourdomain',
'domain_extension' => '.com',
'key_tag' => '54321',
'alg' => 8,
'digest_type' => 1,
'digest' => '123ABC123ABCBC12AB3CABC123AB12C3A123BC12',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/dnssec/create'
payload = {
"domain_name": "yourdomain",
"domain_extension": ".com",
"key_tag": "54321",
"alg": 8,
"digest_type": 1,
"digest": "123ABC123ABCBC12AB3CABC123AB12C3A123BC12"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": true
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
boolean |
Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Delete
Use this endpoint to delete DNSSEC. Your Request must contain following information:
Example request:
curl --request DELETE \
"https://api6.irsfa.id/api/rest/v3/domain/dnssec/delete" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"domain_name\": \"yourdomain\",
\"domain_extension\": \".com\",
\"key_tag\": \"54321\",
\"alg\": 8,
\"digest_type\": 1,
\"digest\": \"123ABC123ABCBC12AB3CABC123AB12C3A123BC12\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/domain/dnssec/delete"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"domain_name": "yourdomain",
"domain_extension": ".com",
"key_tag": "54321",
"alg": 8,
"digest_type": 1,
"digest": "123ABC123ABCBC12AB3CABC123AB12C3A123BC12"
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api6.irsfa.id/api/rest/v3/domain/dnssec/delete',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'domain_name' => 'yourdomain',
'domain_extension' => '.com',
'key_tag' => '54321',
'alg' => 8,
'digest_type' => 1,
'digest' => '123ABC123ABCBC12AB3CABC123AB12C3A123BC12',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/domain/dnssec/delete'
payload = {
"domain_name": "yourdomain",
"domain_extension": ".com",
"key_tag": "54321",
"alg": 8,
"digest_type": 1,
"digest": "123ABC123ABCBC12AB3CABC123AB12C3A123BC12"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {
"client_id": "client id",
"domain": "yourdomain.com",
"key_tag": "11111",
"alg": "",
"digest_type": "",
"digest": "123ABC123ABCBC12AB3CABC123AB12C3A123BC12",
"updated_at": "",
"created_at": ""
}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Hosting
Get Hosting Detail
This endpoint get detail hosting. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/hosting/detail" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"serviceID\": 1025
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/hosting/detail"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"serviceID": 1025
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/hosting/detail',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'serviceID' => 1025,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/hosting/detail'
payload = {
"serviceID": 1025
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Get Hosting Product
This endpoint get list product hosting. Your Request must contain following information:
Example request:
curl --request GET \
--get "https://api6.irsfa.id/api/rest/v3/hosting/product" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/hosting/product"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api6.irsfa.id/api/rest/v3/hosting/product',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/hosting/product'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Create Hosting
This endpoint create new order hosting. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/hosting/create" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"domain\": \"example.com\",
\"product_id\": \"PR0008\",
\"username\": \"alexdoe\",
\"email\": \"alexdoe@gmail.com\",
\"password\": \"verys3cr3t\",
\"period\": 1
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/hosting/create"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"domain": "example.com",
"product_id": "PR0008",
"username": "alexdoe",
"email": "alexdoe@gmail.com",
"password": "verys3cr3t",
"period": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/hosting/create',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'domain' => 'example.com',
'product_id' => 'PR0008',
'username' => 'alexdoe',
'email' => 'alexdoe@gmail.com',
'password' => 'verys3cr3t',
'period' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/hosting/create'
payload = {
"domain": "example.com",
"product_id": "PR0008",
"username": "alexdoe",
"email": "alexdoe@gmail.com",
"password": "verys3cr3t",
"period": 1
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Change Password Hosting
This endpoint change password hosting in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/hosting/change-password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"serviceID\": 10245,
\"password\": \"verys3cr3t\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/hosting/change-password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"serviceID": 10245,
"password": "verys3cr3t"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/hosting/change-password',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'serviceID' => 10245,
'password' => 'verys3cr3t',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/hosting/change-password'
payload = {
"serviceID": 10245,
"password": "verys3cr3t"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Suspend Hosting
This endpoint suspend hosting in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/hosting/suspend" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"serviceID\": 12457
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/hosting/suspend"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"serviceID": 12457
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/hosting/suspend',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'serviceID' => 12457,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/hosting/suspend'
payload = {
"serviceID": 12457
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Unsuspend Hosting
This endpoint unsuspend hosting in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/hosting/unsuspend" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"serviceID\": 123456
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/hosting/unsuspend"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"serviceID": 123456
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/hosting/unsuspend',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'serviceID' => 123456,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/hosting/unsuspend'
payload = {
"serviceID": 123456
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
SSL
Get Type SSL
This endpoint get type SSL. Your Request must contain following information:
Example request:
curl --request GET \
--get "https://api6.irsfa.id/api/rest/v3/ssl/type" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/ssl/type"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api6.irsfa.id/api/rest/v3/ssl/type',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/ssl/type'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": [
{
"ssl_type_id": 1,
"ssl_type_name": "Domain Validation",
"active": 1,
"created_time": 1557304040,
"modify_time": 1557304040
},
{
"ssl_type_id": 2,
"ssl_type_name": "Extended Validation",
"active": 1,
"created_time": 1557304040,
"modify_time": 1557304040
},
]
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Get SSL Product
This endpoint get list product SSL. Your Request must contain following information:
Example request:
curl --request GET \
--get "https://api6.irsfa.id/api/rest/v3/ssl/product" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/ssl/product"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api6.irsfa.id/api/rest/v3/ssl/product',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/ssl/product'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": [
{
"product_id": "PR00019",
"product_type_name": "SSL",
"product_name": "Sectigo Positive SSL - [Comodo]",
"kurs_product": "IDR",
"pricing_register": 65000,
"pricing_renew": 65000,
"pricing_transfer": null,
"pricing_restore": 390000,
"ssl_type_id": 1,
"ssl_type_name": "Domain Validation",
"registry_id": 2
}
]
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Get SSL Detail
This endpoint get detail product SSL. Your Request must contain following information:
Example request:
curl --request GET \
--get "https://api6.irsfa.id/api/rest/v3/ssl/detail" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"id\": 1
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/ssl/detail"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"id": 1
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api6.irsfa.id/api/rest/v3/ssl/detail',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/ssl/detail'
payload = {
"id": 1
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {
"id": 5,
"product_id": "PR0001",
"registry_id": 2,
"status": 2,
"product_name": "",
"service_name": "example.com",
"csr": "-----BEGIN CERTIFICATE REQUEST[csr code here]-----END CERTIFICATE REQUEST-----",
"organization_handle": "2023CCT0014292",
"technical_handle": "2023CCT0014292",
"admin_handle": null,
"billing_handle": null,
"approval_email": "admin@example.com",
"email_reissue": null,
"period": 1,
"reg_date": "2023-06-20 09:07:11",
"exp_date": "2024-06-20 09:07:11",
"active_date": null,
"certificate": "-----BEGIN CERTIFICATE[certificate code here]-----END CERTIFICATE REQUEST-----",
"intermediate_certificate": null,
"root_certificate": null,
"validation_method": null,
"domain_validation_methods": null,
"domain_validation_statuses": null,
"vendor_reference_id": null,
"vendor_order_id": null,
"additional_data": null,
"sslinhva_order_id": null,
"order_ends_at": null,
"reissue_at": null,
"created_at": "2023-06-20 09:07:10",
"updated_at": "2023-06-30 14:23:54",
"status_ssl": "Pending"
"serial_number": "ASDABKISDI2U347",
"certificate_status": "VALID",
"ca_bundle": "-----BEGIN CERTIFICATE[ca bundle code here]-----END CERTIFICATE REQUEST-----",
"created_at": "2023-06-20 09:07:10",
"updated_at": "2023-06-30 14:23:54",
"status_ssl": "Pending",
"verificationState": {
"last_update_date": "2024-08-27T09:10:49.990Z",
"order_status": "ENROLLED",
"details": [
{
"type": "PRODUCT",
"state": "VERIFIED",
"description": "Product Verification by Certum",
"expire_date": null
},
{
"type": "SYSTEM",
"state": "REQUIRED",
"description": "Placing CAA record in DNS for your Domain",
"expire_date": "2024-08-27T17:02:34.101Z"
},
{
"type": "DOMAIN",
"state": "VERIFIED",
"description": "Placing TXT record in DNS for your Domain and/or clicking verification link by Certum from Email",
"expire_date": "2024-12-25T09:10:26.417Z"
}
]
}
}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
List Order SSL
This endpoint get list order SSL product. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/ssl/list" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"hostname\": \"yourhost.com\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/ssl/list"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"hostname": "yourhost.com"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/ssl/list',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'hostname' => 'yourhost.com',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/ssl/list'
payload = {
"hostname": "yourhost.com"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {
"current_page": 1,
"data": [
{
"id": 32,
"product_id": "PR0001",
"registry_id": 2,
"status": 1,
"product_name": "Positive SSL - [Comodo]",
"service_name": "www.example.com",
"csr": "-----BEGIN CERTIFICATE REQUEST-----[csr code here]-----END CERTIFICATE REQUEST-----",
"organization_handle": "BQ000268-ID",
"technical_handle": "BQ000268-ID",
"admin_handle": "BQ000268-ID",
"billing_handle": "SR903538-NL",
"approval_email": "admin@example.com",
"email_reissue": "admin@example.com",
"period": 1,
"reg_date": "2023-06-28 14:31:29",
"exp_date": "2023-07-14 14:31:29",
"active_date": "2023-06-28 00:00:00",
"certificate": "-----BEGIN CERTIFICATE-----[certificate here]-----END CERTIFICATE-----",
"intermediate_certificate": "-----BEGIN CERTIFICATE-----[intermediate certificate here]-----END CERTIFICATE-----\r\n",
"root_certificate": "-----BEGIN CERTIFICATE-----[root certificate here]-----END CERTIFICATE-----\r\n",
"validation_method": "964464878",
"domain_validation_methods": [
{
"hostName": "www.example.com",
"method": "admin@example.com"
},
{
"hostName": "www.example.com",
"method": "admin@example.com"
}
],
"domain_validation_statuses": {
"status": "open",
"caOrderStatus": "issued",
"caStatus": "active",
"caOperation": "none"
},
"vendor_reference_id": "964464878",
"vendor_order_id": "964464878",
"additional_data": null,
"sslinhva_order_id": "5cebf9be-d379-4ae6-bafd-433b3ca754c0",
"order_ends_at": "2024-06-28 00:00:00",
"reissue_at": null,
"created_at": "2023-06-28 14:31:39",
"updated_at": "2023-07-17 13:26:09",
"status_ssl": "Active"
}
],
"first_page_url": "http:*api6.irsfa.id/api/rest/v3/ssl/list?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http:*api6.irsfa.id/api/rest/v3/ssl/list?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http:*api6.irsfa.id/api/rest/v3/ssl/list?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "http:*api6.irsfa.id/api/rest/v3/ssl/list",
"per_page": 10,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Create Order SSL
This endpoint create new order SSL. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/ssl/create" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"product_id\": \"PR00056\",
\"hostname\": [
\"qui\"
],
\"csr\": \"nam\",
\"contact\": \"eligendi\",
\"approval_email\": \"distinctio\",
\"period\": \"recusandae\",
\"domain_validation_method\": [
\"nihil\"
],
\"email_client\": \"suscipit\",
\"phonenumber_client\": \"aliquid\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/ssl/create"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"product_id": "PR00056",
"hostname": [
"qui"
],
"csr": "nam",
"contact": "eligendi",
"approval_email": "distinctio",
"period": "recusandae",
"domain_validation_method": [
"nihil"
],
"email_client": "suscipit",
"phonenumber_client": "aliquid"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/ssl/create',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'product_id' => 'PR00056',
'hostname' => [
'qui',
],
'csr' => 'nam',
'contact' => 'eligendi',
'approval_email' => 'distinctio',
'period' => 'recusandae',
'domain_validation_method' => [
'nihil',
],
'email_client' => 'suscipit',
'phonenumber_client' => 'aliquid',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/ssl/create'
payload = {
"product_id": "PR00056",
"hostname": [
"qui"
],
"csr": "nam",
"contact": "eligendi",
"approval_email": "distinctio",
"period": "recusandae",
"domain_validation_method": [
"nihil"
],
"email_client": "suscipit",
"phonenumber_client": "aliquid"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {
"registry_id": "2",
"product_id": "41",
"hostname": "www.example.com",
"csr": "-----BEGIN CERTIFICATE REQUEST-----[csr code here]-----END CERTIFICATE REQUEST-----",
"organization_handle": "TC000001-ID",
"technical_handle": "TC000001-ID",
"approval_email": "admin@example.com",
"period": 1,
"domain_validation_method": [
{
"hostName": "www.example.com",
"method": "admin@example.com"
}
]
}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Reissue SSL
This endpoint for reissue ordered SSL. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/ssl/reissue" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"id\": 4,
\"hostname\": [
\"explicabo\"
],
\"csr\": \"voluptas\",
\"contact\": \"illo\",
\"approval_email\": \"ut\",
\"email_client\": \"fugit\",
\"phonenumber_client\": \"sed\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/ssl/reissue"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"id": 4,
"hostname": [
"explicabo"
],
"csr": "voluptas",
"contact": "illo",
"approval_email": "ut",
"email_client": "fugit",
"phonenumber_client": "sed"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/ssl/reissue',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'id' => 4,
'hostname' => [
'explicabo',
],
'csr' => 'voluptas',
'contact' => 'illo',
'approval_email' => 'ut',
'email_client' => 'fugit',
'phonenumber_client' => 'sed',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/ssl/reissue'
payload = {
"id": 4,
"hostname": [
"explicabo"
],
"csr": "voluptas",
"contact": "illo",
"approval_email": "ut",
"email_client": "fugit",
"phonenumber_client": "sed"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {
"registry_id": 2,
"id": 74,
"hostname": "www.example.com",
"csr": "-----BEGIN CERTIFICATE REQUEST-----[csr code here]-----END CERTIFICATE REQUEST-----",
"organization_handle": "TC000002-ID",
"technical_handle": "TC000002-ID",
"approval_email": "admin@example.com"
}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Modify SSL
This endpoint for modify ordered SSL. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/ssl/modify" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"id\": 4,
\"domain_validation_method\": [
\"quibusdam\"
]
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/ssl/modify"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"id": 4,
"domain_validation_method": [
"quibusdam"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/ssl/modify',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'id' => 4,
'domain_validation_method' => [
'quibusdam',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/ssl/modify'
payload = {
"id": 4,
"domain_validation_method": [
"quibusdam"
]
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {
"id": "74"
}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Renew SSL
This endpoint for renew ordered SSL. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/ssl/renew" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"id\": 4,
\"hostname\": [
\"tempora\"
],
\"csr\": \"officiis\",
\"contact\": \"et\",
\"approval_email\": \"porro\",
\"period\": \"consequatur\",
\"domain_validation_method\": [
\"laborum\"
],
\"email_client\": \"nam\",
\"phonenumber_client\": \"quo\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/ssl/renew"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"id": 4,
"hostname": [
"tempora"
],
"csr": "officiis",
"contact": "et",
"approval_email": "porro",
"period": "consequatur",
"domain_validation_method": [
"laborum"
],
"email_client": "nam",
"phonenumber_client": "quo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/ssl/renew',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'id' => 4,
'hostname' => [
'tempora',
],
'csr' => 'officiis',
'contact' => 'et',
'approval_email' => 'porro',
'period' => 'consequatur',
'domain_validation_method' => [
'laborum',
],
'email_client' => 'nam',
'phonenumber_client' => 'quo',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/ssl/renew'
payload = {
"id": 4,
"hostname": [
"tempora"
],
"csr": "officiis",
"contact": "et",
"approval_email": "porro",
"period": "consequatur",
"domain_validation_method": [
"laborum"
],
"email_client": "nam",
"phonenumber_client": "quo"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {
"registry_id": 2,
"id": 74
}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Generate CSR
This endpoint for generate CSR SSL. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/ssl/generate" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"registry_id\": 2,
\"bits\": 1,
\"hostname\": \"yourhost.com\",
\"country\": \"ID\",
\"state\": \"Bandung\",
\"locality\": \"ID\",
\"organization\": \"architecto\",
\"unit\": \"minima\",
\"email\": \"repellat\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/ssl/generate"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"registry_id": 2,
"bits": 1,
"hostname": "yourhost.com",
"country": "ID",
"state": "Bandung",
"locality": "ID",
"organization": "architecto",
"unit": "minima",
"email": "repellat"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/ssl/generate',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'registry_id' => 2,
'bits' => 1,
'hostname' => 'yourhost.com',
'country' => 'ID',
'state' => 'Bandung',
'locality' => 'ID',
'organization' => 'architecto',
'unit' => 'minima',
'email' => 'repellat',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/ssl/generate'
payload = {
"registry_id": 2,
"bits": 1,
"hostname": "yourhost.com",
"country": "ID",
"state": "Bandung",
"locality": "ID",
"organization": "architecto",
"unit": "minima",
"email": "repellat"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {
"command": "openssl req -new -newkey rsa:2048 -nodes -out your.csr -keyout your.private.key -subj \"/C=ID/ST=Jakarta/L=ID/O=example/OU=1/CN=www.example.com/emailAddress=admin@example.com\"",
"csr": "-----BEGIN CERTIFICATE REQUEST-----[csr code here]-----END CERTIFICATE REQUEST-----\n",
"key": "-----BEGIN PRIVATE KEY-----[key code here]-----END PRIVATE KEY-----\n",
"keyPath": "key_12345"
}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Decode CSR
This endpoint for decode CSR SSL. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/ssl/decode" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"registry_id\": 2,
\"csr\": \"aut\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/ssl/decode"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"registry_id": 2,
"csr": "aut"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/ssl/decode',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'registry_id' => 2,
'csr' => 'aut',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/ssl/decode'
payload = {
"registry_id": 2,
"csr": "aut"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {
"publicKey": {
"bits": "2048",
"key": "-----BEGIN PUBLIC KEY-----[key code here]-----END PUBLIC KEY-----\n"
},
"subject": {
"commonName": "www.example.com",
"organization": "example",
"unit": "1",
"locality": "ID",
"state": "Jakarta",
"country": "ID",
"email": "admin@example.com"
},
"signatureHashAlgorithm": "sha256WithRSAEncryption",
"subjectAlternativeName": null,
"domainNamesCount": "1",
"wildcardDomainNamesCount": null,
"nonWildcardDomainNamesCount": "1"
}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
VPS
Get VPS Product
This endpoint get list product vps. Your Request must contain following information:
Example request:
curl --request GET \
--get "https://api6.irsfa.id/api/rest/v3/vps/product" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/vps/product"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api6.irsfa.id/api/rest/v3/vps/product',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/vps/product'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Get Operating System (OS) VPS
This endpoint get list operating system (OS) VPS. Your Request must contain following information:
Example request:
curl --request GET \
--get "https://api6.irsfa.id/api/rest/v3/vps/osvps" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/vps/osvps"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api6.irsfa.id/api/rest/v3/vps/osvps',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/vps/osvps'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Create VPS
This endpoint create new order vps. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/vps/create" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"product_id\": \"PR00056\",
\"rootpass\": \"verys3cr3t\",
\"osid\": 2,
\"hostname\": \"yourhost.com\",
\"period\": 1
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/vps/create"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"product_id": "PR00056",
"rootpass": "verys3cr3t",
"osid": 2,
"hostname": "yourhost.com",
"period": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/vps/create',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'product_id' => 'PR00056',
'rootpass' => 'verys3cr3t',
'osid' => 2,
'hostname' => 'yourhost.com',
'period' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/vps/create'
payload = {
"product_id": "PR00056",
"rootpass": "verys3cr3t",
"osid": 2,
"hostname": "yourhost.com",
"period": 1
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Get VPS Detail
This endpoint get detail vps. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/vps/detail" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"vpsID\": 123456
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/vps/detail"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"vpsID": 123456
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/vps/detail',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'vpsID' => 123456,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/vps/detail'
payload = {
"vpsID": 123456
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Start VPS
This endpoint start vps in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/vps/start" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"vpsID\": 123456
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/vps/start"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"vpsID": 123456
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/vps/start',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'vpsID' => 123456,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/vps/start'
payload = {
"vpsID": 123456
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Stop VPS
This endpoint stop vps in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/vps/stop" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"vpsID\": 123456
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/vps/stop"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"vpsID": 123456
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/vps/stop',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'vpsID' => 123456,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/vps/stop'
payload = {
"vpsID": 123456
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Restart VPS
This endpoint restart vps in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/vps/restart" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"vpsID\": 123456
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/vps/restart"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"vpsID": 123456
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/vps/restart',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'vpsID' => 123456,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/vps/restart'
payload = {
"vpsID": 123456
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Poweroff VPS
This endpoint poweroff vps in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/vps/poweroff" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"vpsID\": 123456
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/vps/poweroff"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"vpsID": 123456
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/vps/poweroff',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'vpsID' => 123456,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/vps/poweroff'
payload = {
"vpsID": 123456
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Suspend VPS
This endpoint suspend vps in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/vps/suspend" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"vpsID\": 123456
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/vps/suspend"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"vpsID": 123456
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/vps/suspend',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'vpsID' => 123456,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/vps/suspend'
payload = {
"vpsID": 123456
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Unsuspend VPS
This endpoint unsuspend vps in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/vps/unsuspend" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"vpsID\": 123456
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/vps/unsuspend"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"vpsID": 123456
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/vps/unsuspend',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'vpsID' => 123456,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/vps/unsuspend'
payload = {
"vpsID": 123456
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |
Rebuild VPS
This endpoint rebuild vps in your account. Your Request must contain following information:
Example request:
curl --request POST \
"https://api6.irsfa.id/api/rest/v3/vps/rebuild" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {access_token}" \
--header "X-Requested-With: XMLHttpRequest" \
--data "{
\"vpsID\": 123456,
\"osid\": 54,
\"newpass\": \"verys3cr3t\",
\"confirmation_new_pass\": \"verys3cr3t\"
}"
const url = new URL(
"https://api6.irsfa.id/api/rest/v3/vps/rebuild"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}",
"X-Requested-With": "XMLHttpRequest",
};
let body = {
"vpsID": 123456,
"osid": 54,
"newpass": "verys3cr3t",
"confirmation_new_pass": "verys3cr3t"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api6.irsfa.id/api/rest/v3/vps/rebuild',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer {access_token}',
'X-Requested-With' => 'XMLHttpRequest',
],
'json' => [
'vpsID' => 123456,
'osid' => 54,
'newpass' => 'verys3cr3t',
'confirmation_new_pass' => 'verys3cr3t',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api6.irsfa.id/api/rest/v3/vps/rebuild'
payload = {
"vpsID": 123456,
"osid": 54,
"newpass": "verys3cr3t",
"confirmation_new_pass": "verys3cr3t"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access_token}',
'X-Requested-With': 'XMLHttpRequest'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"code": 200,
"message": "Successfully proccess the request!",
"data": {}
}
Example response (500, failed):
{
"code": 500,
"message": "An error occurred!",
"error": []
}
Received response:
Request failed with error:
Response
Response Fields
Response Field | Type | Description |
---|---|---|
code
|
integer |
200 |
message
|
string |
Success/error message |
data
|
object |
(object) Only available in success response |
error
|
string[] |
(array) Only available in failed response |