Skip to main content
The API Keys tab allows you to generate and manage authentication keys for accessing the Mobilerun API. Use API keys to integrate Mobilerun into your applications, CI/CD pipelines, and automation workflows.

Overview

API keys provide:
  • Authentication for API requests
  • Programmatic access to all Mobilerun features
  • Integration with external tools and services

Creating an API Key

To generate a new API key:
  1. Click Create API Key
  2. Enter a descriptive name for the key (e.g., “CI Pipeline”, “Production Server”)
  3. Click Create
  4. Copy the generated key immediately
API keys are only displayed once at creation. Store your key securely as you will not be able to view it again.
Mobilerun cloud keys always start with the prefix dr_sk_. Pass the full key, including the prefix, as a bearer token in the form Authorization: Bearer dr_sk_.... This is a different credential from your LLM provider keys such as GOOGLE_API_KEY or OPENAI_API_KEY, which are only used by the local Framework. See the two kinds of API keys for guidance on when to use each one.

Managing API Keys

Your API key list displays:

Revoke Keys

Delete API keys that are no longer needed or may have been compromised. Revoked keys immediately stop working for all API requests.
Revoking a key cannot be undone. You will need to create a new key and update any integrations that used the old key.

Using API Keys

Include your API key in the request headers when calling the Mobilerun API:
If you are new to the API, the Cloud Quickstart walks through the full flow in TypeScript, Python, and cURL. It covers finding a device, running a task, and reading the result.

Authentication Header

All API requests require the Authorization header:

API Documentation

The complete API reference is available via OpenAPI specification. Access the full documentation to explore all available endpoints:
  • Tasks - Create, monitor, and manage agent tasks
  • Devices - List and manage your devices
  • Apps - Upload and install applications
  • Credentials - Manage stored credentials
  • Hooks - Configure webhooks for task events

API Reference

View the complete API documentation with request/response schemas and examples.

Best Practices

Environment Variables

Store your API key as an environment variable rather than hardcoding it:
Then reference it in your code or scripts: