AppInstalls
Install catalog apps on an iPhone from the App Store
Starts an agent turn on the iPhone that installs the named catalog
apps from the App Store. agentId picks the agent; without it, the
agent that uses the iPhone runs it (the workspace’s primary agent
when none does). Follow it as any run, under
GET /v1/sessions/{id} with the returned sessionId.
409: phone_busy, agent_choice_required,
agent_not_on_phone or no_agent_on_phone; 422 unsupported_platform for a phone that is not an iPhone.
Retries: safe: the required UUID Idempotency-Key returns the same run on a repeat.
POST
/
v1
/
workspaces
/
{workspaceId}
/
devices
/
{deviceId}
/
app-store-installs
Install catalog apps on an iPhone from the App Store
curl --request POST \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/app-store-installs \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"packages": [
"<string>"
],
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({packages: ['<string>'], agentId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/app-store-installs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/app-store-installs"
payload = {
"packages": ["<string>"],
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sessionId": "<string>",
"status": "<string>",
"queued": true,
"needsDevice": true,
"deviceId": "<string>",
"recording": true,
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recordingState": {
"status": "starting",
"reason": "<string>"
},
"invocationId": "<string>"
}
}{
"error": "validation_error",
"details": {}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Headers
Path Parameters
Body
application/json
Was this page helpful?
⌘I
Install catalog apps on an iPhone from the App Store
curl --request POST \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/app-store-installs \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"packages": [
"<string>"
],
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({packages: ['<string>'], agentId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/app-store-installs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/app-store-installs"
payload = {
"packages": ["<string>"],
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sessionId": "<string>",
"status": "<string>",
"queued": true,
"needsDevice": true,
"deviceId": "<string>",
"recording": true,
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recordingState": {
"status": "starting",
"reason": "<string>"
},
"invocationId": "<string>"
}
}{
"error": "validation_error",
"details": {}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
