Skip to main content

Get Apps

Endpoint: Get Apps

This endpoint retrieves a list of all apps associated with the authenticated user or team. Each app contains its configuration, workflow, status, job statistics, and other metadata.

URL

GET https://api.rungen.ai/app

Headers

HeaderTypeRequiredDescription
x-api-keyStringYesYour API key for authentication.
x-team-idStringNoThe unique identifier for the team. If omitted, only user-specific apps are retrieved.

Example Request

curl --location 'https://api.rungen.ai/app' \
--header 'x-api-key: 12324234'

Response

Success

Status Code: 200 OK

Response Body:

{
"data": [
{
"configuration": {
"active_workers": 0,
"gpu_tier": "STANDARD"
},
"created_at": "2025-01-09T16:45:34",
"created_by": "ee4988a7-48e2-44ae-81f5-178a44ebeb58",
"description": "This is my first app",
"id": "745f7dc0-cd5a-488e-98ce-7d48c624060a",
"jobs": {
"completed": 0,
"failed": 0,
"in_progress": 0,
"in_queue": 0,
"retried": 0
},
"name": "My first app",
"owner_team_id": null,
"owner_user_id": "ee4988a7-48e2-44ae-81f5-178a44ebeb58",
"status": "STOPPED",
"updated_at": "2025-01-09T16:45:34",
"workers": {
"idle": 0,
"initializing": 0,
"ready": 0,
"running": 0,
"throttled": 0,
"unhealthy": 0
},
"workflow": {
"model_url": "https://huggingface.co/black-forest-labs/FLUX.1-schnell",
"tools": {}
}
}
]
}

Response Fields

FieldTypeDescription
dataArrayA list of apps associated with the user or team.
data[].configurationObjectConfiguration details for the app.
data[].configuration.active_workersIntegerNumber of active workers.
data[].configuration.gpu_tierStringGPU identifiers for the app.
data[].created_atStringISO timestamp when the app was created.
data[].created_byStringUser ID of the creator.
data[].descriptionStringDescription of the app.
data[].idStringUnique identifier for the app.
data[].jobsObjectStatistics about jobs associated with the app.
data[].jobs.completedIntegerNumber of completed jobs.
data[].jobs.failedIntegerNumber of failed jobs.
data[].jobs.in_progressIntegerNumber of jobs currently in progress.
data[].jobs.in_queueIntegerNumber of jobs in the queue.
data[].jobs.retriedIntegerNumber of retried jobs.
data[].nameStringName of the app.
data[].owner_team_idStringID of the team owning the app (if applicable).
data[].owner_user_idStringID of the user owning the app.
data[].statusStringCurrent status of the app (e.g., STOPPED).
data[].updated_atStringISO timestamp when the app was last updated.
data[].workersObjectDetails about the workers associated with the app.
data[].workers.idleIntegerNumber of idle workers.
data[].workers.initializingIntegerNumber of workers initializing.
data[].workers.readyIntegerNumber of workers ready for jobs.
data[].workers.runningIntegerNumber of workers currently running.
data[].workers.throttledIntegerNumber of workers throttled due to resource limits.
data[].workers.unhealthyIntegerNumber of workers marked as unhealthy.
data[].workflowObjectWorkflow details for the app.
data[].workflow.model_urlStringURL of the model used in the workflow.
data[].workflow.toolsObjectAdditional tools configured for the workflow.

Error Responses

Status Code: 403 Forbidden

Example Response Body:

{
"error": "Unauthorized access. Invalid API key."
}

Notes

  • jobs and workers provide insights into the operational state of the app and its execution history.