curl --request POST \
--url https://api.royalti.io/integrations/vertofx \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Royalti Demo Verto Integrations",
"apiKey": "9JP4FKWP0TMTDFPYHGSEIUGFBWEFHGSLQVSHJF2KTR17HGSGHFKHGDBSJFVG",
"clientId": "H812JHVLSDKJFBVKLJDBSFVBDFUVS86Y5"
}
'{
"id": "d3fa97e3-2573-4695-9d1d-516f8b11d874",
"name": "Royalti Demo Verto Integrations",
"enabled": true,
"settings": {
"apiKey": "9JP4FKWP0TMTDFPYHGSEIUGFBWEFHGSLQVSHJF2KTR17HGSGHFKHGDBSJFVG",
"clientId": "H812JHVLSDKJFBVKLJDBSFVBDFUVS86Y5"
},
"memo": null,
"TenantId": 2,
"IntegrationId": "a4ab3109-b247-431c-a7c0-fd004a851475",
"updatedAt": "2024-04-11T21:14:49.622Z",
"createdAt": "2024-04-11T21:14:49.622Z",
"metadata": null
}Create VertoFX Integration
curl --request POST \
--url https://api.royalti.io/integrations/vertofx \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Royalti Demo Verto Integrations",
"apiKey": "9JP4FKWP0TMTDFPYHGSEIUGFBWEFHGSLQVSHJF2KTR17HGSGHFKHGDBSJFVG",
"clientId": "H812JHVLSDKJFBVKLJDBSFVBDFUVS86Y5"
}
'{
"id": "d3fa97e3-2573-4695-9d1d-516f8b11d874",
"name": "Royalti Demo Verto Integrations",
"enabled": true,
"settings": {
"apiKey": "9JP4FKWP0TMTDFPYHGSEIUGFBWEFHGSLQVSHJF2KTR17HGSGHFKHGDBSJFVG",
"clientId": "H812JHVLSDKJFBVKLJDBSFVBDFUVS86Y5"
},
"memo": null,
"TenantId": 2,
"IntegrationId": "a4ab3109-b247-431c-a7c0-fd004a851475",
"updatedAt": "2024-04-11T21:14:49.622Z",
"createdAt": "2024-04-11T21:14:49.622Z",
"metadata": null
}/integrations/vertofxPOST
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Name of the VertoFX integration instance. |
| apiKey | string | Yes | API key for the VertoFX integration. |
| clientId | string | Yes | Client ID for the VertoFX integration. |
const response = await fetch('https://api.royalti.io/integrations/vertofx', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"name": "sample-name",
"apiKey": "sample-apiKey",
"clientId": "sample-clientId",
"memo": "sample-memo"
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"