Skip to main content

Get All Config

Retrieve all Events config items for a specific user

Request
POST https://api.arkhia.io/events/hedera/settings/:x-api-key

HEADERS
x-api-secret | string | The Api Secret retrieved from an Arkhia project

PARAMETERS
x-api-key | string | The Api Key retrieved from an Arkhia project

Response
[
{
id: 'clocr66zu000nulpkoxan6tid',
item_id: '0x10890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15',
user_id: 'cll1qams20001ulkq502o4w2b',
network_id: 296,
type_id: 2,
enabled: false,
json_settings: { events: [Array] },
status: 'QUEUED',
created_at: '2023-10-30T10:24:14.826Z',
updated_at: '2023-10-30T10:24:25.513Z',
job_health_timestamp: '1970-01-01T00:00:00.000Z',
request_fetch_limit: 100
},
{
id: 'clocr66yw000lulpk8rzu357z',
item_id: '0x97890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15',
user_id: 'cll1qams20001ulkq502o4w2b',
network_id: 295,
type_id: 5,
enabled: false,
json_settings: { events: [Array] },
status: 'QUEUED',
created_at: '2023-10-30T10:24:14.792Z',
updated_at: '2023-10-30T10:24:14.792Z',
job_health_timestamp: '1970-01-01T00:00:00.000Z',
request_fetch_limit: 100
}
]

Code sample
const axios = require('axios');const restApiUrl = `https://api.arkhia.io/events/hedera/settings/<YOUR_ARKHIA_API_KEY>`;const apiSecret = `<YOUR_ARKHIA_API_SECRET>`;const headers = { headers: { "x-api-secret": apiSecret } };getConfig= async () => {    try {        const response = await axios.post(restApiUrl, headers);        return response;    } catch(e) {        console.error(e);    }}