---
title: "The backend that runs your app's API routes and scheduled jobs"
description: "Every Hercules app runs on a backend that takes webhooks, runs scheduled jobs like a nightly invoice run, and keeps API keys in Secrets. No servers to manage."
---

# The backend that runs your app's API routes and scheduled jobs

Every app you build on Hercules runs on its own backend, managed from the Hosting tab. It answers requests from other software, such as a supplier's system reporting a shipped order, and runs scheduled work like a nightly invoice run.

- **In every app.** Each app gets a production backend automatically.
- **Scales with demand.** The serverless backend grows and shrinks with traffic.
- **Keys out of the code.** Secrets are encrypted and never appear in your code or logs.

## What can Hosting do for your business?

### Take requests from other software

Your backend has its own web address, so a supplier's system can send a webhook when an order ships. Other apps can also call it to read your data. [Backend](https://hercules.app/docs/apps/backend)

### Run jobs on a schedule

A recurring job can send overdue reminders every Monday. A one-time job runs at a set moment, like a follow-up email 3 days after a quote goes out. [Backend](https://hercules.app/docs/apps/backend)

### Keep API keys in Secrets

Hercules uses a key saved in Secrets when it builds a feature, seeing only the key's name. You can't reveal a key again once you mark it Sensitive. [Secrets](https://hercules.app/docs/apps/secrets)

### Test on a separate backend

Each branch runs on its own backend and database until you merge. Scheduled jobs on a branch still send real emails, so ask Hercules to remove them there before you test. [Branches](https://hercules.app/docs/apps/branches)

### See what the backend is doing

Backend analytics shows call counts, database bandwidth and compute for each function, scheduled jobs included. For logs and errors, ask Hercules. [Backend](https://hercules.app/docs/apps/backend)

### Choose where it runs

Move an app's backend and database to another region, such as EU West (Ireland). Only that app moves, and it's usually offline for a few minutes. [Backend](https://hercules.app/docs/apps/backend)

## How do you add a scheduled job or an API route?

### 1. Describe the job on a branch

> Every night at 2 a.m. Eastern, email each customer an invoice for the jobs we completed that day.

Hercules writes the job on the branch and sends invoices from your verified sender.

### 2. Connect the outside system

> Give our parts supplier a webhook address for shipped orders, and mark the matching purchase order shipped.

Hercules builds the route. Give the supplier its address from the Hosting tab, and save any key they issue in Secrets.

### 3. Check the branch, then merge

Check the preview and Code diff, then click Merge.

Hercules merges the branch. Backend changes go live the next time your main dev session starts, so publish soon after. With a separate development backend, Publish sends them live instead. [Branches](https://hercules.app/docs/apps/branches)

## What has a business built with Hosting?

American Mortuary Equipment has thousands of mortuary coolers in funeral homes across North America. Checking one used to mean reading its gauge in person. Their owner, TR, had never coded, but he built an app on Hercules that tracks each cooler's live temperature. An App Integration saves sensor readings in the app's database, and the backend alerts TR when a cooler warms up.

> I'm not a tech person at all, but you make it easier for rookies and dummies like myself. It's a reliable platform, so I can confidently recommend it and new users get up to speed quickly.

TR, Owner, American Mortuary Equipment

Read the [American Mortuary Equipment story](https://hercules.app/customers/american-mortuary-equipment)

## What should you know before you start?

- The Hosting tab doesn't list scheduled jobs, so ask Hercules to check them.
- Changing an app's region needs a paid plan and an organization owner or admin. Pending scheduled jobs don't move with the app.
- Backend actions run for up to 10 minutes and return up to 16 MB. [Secrets](https://hercules.app/docs/apps/secrets)
- Backend usage draws on the Hercules Cloud usage your plan includes, then bills pay-as-you-go. See the [pricing page](https://hercules.app/pricing).

## Related features

- Use [Database](/features/database) to store records when your jobs and routes need data.
- Use [App Integrations](/features/integrations) to use services such as Slack when you'd otherwise write that code.
- Use [Hercules Agents](/products/agents) to repeat a job with AI when recurring work needs judgment.

## How do you get started?

Pick one recurring task, note its trigger and its output, and describe it in chat. Start building.

## Frequently asked questions

### Can a developer edit the backend code directly?

On a paid plan, a developer can edit backend code in the Codebase tab. Asking Hercules is usually safer, because it makes coordinated changes across files. [Code editor](https://hercules.app/docs/apps/code-editor)

### Can my backend call another company's API?

Backend actions in Hercules can call any outside service over HTTP, with no domain allowlist to set up. A service that only accepts raw TCP connections, such as Postgres, needs an HTTP-based driver. [Secrets](https://hercules.app/docs/apps/secrets)

### Can I use different keys for testing and for the live app?

Add the same key twice in Secrets, one scoped to Production and one to Development. [Secrets](https://hercules.app/docs/apps/secrets)

### What if our supplier only accepts known IP addresses?

The Hercules docs list the backend's public IP addresses for each region, for your supplier to allowlist. [Backend](https://hercules.app/docs/apps/backend)

```json
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Can a developer edit the backend code directly?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "On a paid plan, a developer can edit backend code in the Codebase tab. Asking Hercules is usually safer, because it makes coordinated changes across files. Code editor"
      }
    },
    {
      "@type": "Question",
      "name": "Can my backend call another company's API?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Backend actions in Hercules can call any outside service over HTTP, with no domain allowlist to set up. A service that only accepts raw TCP connections, such as Postgres, needs an HTTP-based driver. Secrets"
      }
    },
    {
      "@type": "Question",
      "name": "Can I use different keys for testing and for the live app?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Add the same key twice in Secrets, one scoped to Production and one to Development. Secrets"
      }
    },
    {
      "@type": "Question",
      "name": "What if our supplier only accepts known IP addresses?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "The Hercules docs list the backend's public IP addresses for each region, for your supplier to allowlist. Backend"
      }
    }
  ]
}
```
