Mobile Apps

Upload and manage Android APK files used by mobile tests and mobile discoveries. Mobile apps are immutable artifacts; upload each build separately.

GET /api/v1/mobile-apps

List mobile apps

Returns a cursor-paginated page of the tenant's uploaded Android apps.

Parameters

ParameterTypeInRequiredDescription
limitintegerqueryNoMaximum mobile apps to return.
cursoruuidqueryNoReturn mobile apps older than this artifact.

Example Request

curl
curl "http://app.aiqaramba.com/api/v1/mobile-apps" \
  -H "Authorization: Bearer $AIQA_API_KEY"

Status Codes

CodeDescription
200Tenant mobile apps.
400The request is malformed or failed validation.
401Authentication is missing or invalid.
500The server could not complete the request.

Response Fields (200)

FieldTypeDescription
mobile_appsobject[]
mobile_apps[].iduuid
mobile_apps[].namestring
mobile_apps[].package_namestring
mobile_apps[].main_activitystring
mobile_apps[].version_namestring
mobile_apps[].version_codeinteger
mobile_apps[].size_bytesinteger
mobile_apps[].created_atdate-time
mobile_apps[].updated_atdate-time
next_cursoruuid
POST /api/v1/mobile-apps/import

Import a staged mobile app

Consumes an APK from tenant Files or a trusted assistant workspace.

Request Body (application/json)

FieldTypeRequiredDescription
sourcestringYestenant_files, or chat_workspace for embedded assistant calls
pathstringYesRelative APK path in the selected source

Example Request

curl
curl -X POST "http://app.aiqaramba.com/api/v1/mobile-apps/import" \
  -H "Authorization: Bearer $AIQA_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "source": "<string>",
    "path": "<string>"
  }'

Status Codes

CodeDescription
201Mobile app imported.
400The request is malformed or failed validation.
401Authentication is missing or invalid.
403The authenticated principal is not authorized for this operation.
404The requested resource does not exist.
413The request body or uploaded artifact is too large.
422The request is structurally valid but cannot be processed.
500The server could not complete the request.
507The tenant does not have enough storage quota.

Response Fields (201)

FieldTypeDescription
mobile_appobjectAn immutable uploaded Android application artifact.
mobile_app.iduuid
mobile_app.namestring
mobile_app.package_namestring
mobile_app.main_activitystring
mobile_app.version_namestring
mobile_app.version_codeinteger
mobile_app.size_bytesinteger
mobile_app.created_atdate-time
mobile_app.updated_atdate-time
POST /api/v1/mobile-apps/upload

Upload a mobile app

Uploads and validates one Android APK of at most 500 MB.

Request Body (multipart/form-data)

FieldTypeRequiredDescription
filefileYesAndroid APK (multipart form field name: file)

Example Request

curl
curl -X POST "http://app.aiqaramba.com/api/v1/mobile-apps/upload" \
  -H "Authorization: Bearer $AIQA_API_KEY" \
  -F 'file=@./file'

Status Codes

CodeDescription
201Mobile app uploaded.
400The request is malformed or failed validation.
401Authentication is missing or invalid.
413The request body or uploaded artifact is too large.
422The request is structurally valid but cannot be processed.
500The server could not complete the request.
507The tenant does not have enough storage quota.

Response Fields (201)

FieldTypeDescription
mobile_appobjectAn immutable uploaded Android application artifact.
mobile_app.iduuid
mobile_app.namestring
mobile_app.package_namestring
mobile_app.main_activitystring
mobile_app.version_namestring
mobile_app.version_codeinteger
mobile_app.size_bytesinteger
mobile_app.created_atdate-time
mobile_app.updated_atdate-time
GET /api/v1/mobile-apps/{id}

Get a mobile app

Parameters

ParameterTypeInRequiredDescription
iduuidpathYesMobile app ID.

Example Request

curl
curl "http://app.aiqaramba.com/api/v1/mobile-apps/<id>" \
  -H "Authorization: Bearer $AIQA_API_KEY"

Status Codes

CodeDescription
200Mobile app found.
400The request is malformed or failed validation.
401Authentication is missing or invalid.
404The requested resource does not exist.
500The server could not complete the request.

Response Fields (200)

FieldTypeDescription
mobile_appobjectAn immutable uploaded Android application artifact.
mobile_app.iduuid
mobile_app.namestring
mobile_app.package_namestring
mobile_app.main_activitystring
mobile_app.version_namestring
mobile_app.version_codeinteger
mobile_app.size_bytesinteger
mobile_app.created_atdate-time
mobile_app.updated_atdate-time
DELETE /api/v1/mobile-apps/{id}

Delete a mobile app

Deletes an app unless queued or executing runs still use it.

Parameters

ParameterTypeInRequiredDescription
iduuidpathYesMobile app ID.

Example Request

curl
curl -X DELETE "http://app.aiqaramba.com/api/v1/mobile-apps/<id>" \
  -H "Authorization: Bearer $AIQA_API_KEY"

Status Codes

CodeDescription
204Mobile app deleted.
400The request is malformed or failed validation.
401Authentication is missing or invalid.
404The requested resource does not exist.
409The request conflicts with the current resource state.
500The server could not complete the request.