Skip to main content

Get App

Endpoint: Get App

This endpoint retrieves detailed information about a specific app on the RunGen.AI platform. The app is identified by its unique app_id. Use this endpoint to retrieve app details, including its status, configuration, job statistics, and worker states.

URL

GET https://api.rungen.ai/app/{app_id}

Path Parameters

ParameterTypeRequiredDescription
app_idStringYesThe unique identifier of the app to retrieve.

Headers

HeaderTypeRequiredDescription
x-api-keyStringYesYour API key for authentication.
x-team-idStringNoThe unique identifier for the team. If omitted, the app is retrieved based on the user's access.

Example Request

curl --location 'https://api.rungen.ai/app/9f5b4ec7-fc6a-4872-a3ef-d0050463c7d9' \
--header 'x-api-key: 12324355'

Response

Success

Status Code: 200 OK

Response Body:

{
"configuration": {
"active_workers": 1,
"gpu_tier": "STANDARD"
},
"created_at": "2025-01-09T16:45:34",
"created_by": "ee4988a7-48e2-44ae-81f5-178a44ebeb58",
"description": "This is my first app",
"id": "9f5b4ec7-fc6a-4872-a3ef-d0050463c7d9",
"jobs": {
"completed": 10,
"failed": 1,
"in_progress": 2,
"in_queue": 0,
"retried": 0
},
"name": "My first app",
"owner_team_id": null,
"owner_user_id": "ee4988a7-48e2-44ae-81f5-178a44ebeb58",
"status": "RUNNING",
"updated_at": "2025-01-10T10:30:45",
"workers": {
"idle": 0,
"initializing": 1,
"ready": 1,
"running": 0,
"throttled": 0,
"unhealthy": 0
},
"workflow": {
"model_url": "https://huggingface.co/black-forest-labs/FLUX.1-schnell",
"tools": {}
}
}

Response Fields

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

Error Responses

Status Code: 404 Not Found

Example Response Body:

{
"error": "App with ID '9f5b4ec7-fc6a-4872-a3ef-d0050463c7d9' not found."
}

Status Code: 403 Forbidden

Example Response Body:

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