API Reference
As soon as you create your first OAuth client and save its client secret you can start integrating Ylem with your application via API.
Currently, the following API endpoints are available:
Generate OAuth2 token
Endpoint
[GET/POST] https://api.datamin.io/v1/oauth/token?client_id=%%CLIENT_ID%%&client_secret=%%CLIENT_SECRET%%&grant_type=client_credentialsRequest body empty Response example
{
"access_token": "ZJG5NZFLOWUTYJYWYY0ZOGU3LWI5NZMTYMJLZTJHZJAYNWNJ",
"expires_in": 86400,
"refresh_token": "ODQZYTQ2ZMUTOWNHZC01NDG2LWI1ZDMTNZM5YJY1ZWJJZTCW",
"scope": "workflows:run",
"token_type": "Bearer"
}Run pipeline
Pipeline UUID can be found either in the list of pipelines or on the detailed page of the pipeline:

Endpoint
Request body empty Authorization Bearer: %%ACCESS_TOKEN%% Response example
Get a log of runs for a pipeline
Endpoint
Formatting notice DATE_TIME_FROM and DATE_TIME_TO must be in the format "Y-m-d H:i:s". For example, "2024-01-01 14:23:01"
Request body empty Authorization Bearer: %%ACCESS_TOKEN%% Response example
Formatting notice The "Output" field in the response in Base64 is encrypted and needs to be decrypted on the API client side.
Get consolidated statistics of runs for pipelines and tasks
Endpoint
and
Endpoint
Formatting notice DATE_TIME_FROM and DATE_TIME_TO must be in the format "Y-m-d H:i:s". For example, "2024-01-01 14:23:01"
Request body empty Authorization Bearer: %%ACCESS_TOKEN%% Response example
Get aggregated statistics of runs for pipelines and tasks for the period of time
Endpoint
and
Endpoint
%%PERIOD%% here has five possible values: day, week, month, quarter, year.
Request example GET /tasks/%%UUID%%/aggregated-stats/2020-01-01/month/12 will return a JSON array with 12 (or less if some donβt exist) elements each of which represents an aggregated statistic for a month starting on 2020-01-01.
Request body empty Authorization Bearer: %%ACCESS_TOKEN%% Response example
Get statistics of the last run for pipelines and tasks
Endpoint
and
Endpoint
Request body empty Authorization Bearer: %%access_token%% Response example
Last updated
Was this helpful?