canonical: https://jentic.com/apis/whapi.com/numbers-api

# Whapi Numbers API

The William Hill Numbers API uses a single method that allows you to generate random numbers for your application. Numbers can either be unique or can be produced with the chance that some might be the same. For example, you can have a highest value of 6 and a lowest value of 1 with a count of 2 with a unique value of false - this will give you two numbers between 1 and 6 which are independent, ju. The API exposes 1 endpoints.

## For AI agents

Programmatically getrandomnumbers. Covers 1 operations.

## Scope

Does not handle payments, communications, or crm - use for developer tools only.

## Capabilities

- getRandomNumbers
- Manage developer tools data programmatically
- Integrate Numbers API into automated workflows
- Query and filter Numbers API records by parameters
- Monitor Numbers API operational status and events

## Use cases

### Developer Tools Operations

Use the Numbers API to perform developer tools operations programmatically. The API provides 1 endpoints covering core functionality including getrandomnumbers.

Example prompt: Call GET /generate/integers to getrandomnumbers

### Data Retrieval and Monitoring

Query Numbers API resources on a schedule to track changes, generate alerts, or feed downstream dashboards. Agents poll relevant endpoints, compare against previous state, and trigger actions when thresholds are crossed.

Example prompt: Poll the primary Numbers API endpoint, compare response to last known state, and alert if changed

### AI Agent Integration via Jentic

AI agents discover and call Numbers API endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle none tokens manually.

Example prompt: Search Jentic for 'getrandomnumbers', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | /generate/integers | getRandomNumbers |

## Key resources

- **Generate** — Operations for generate

## Why Jentic

- **Setup:** Wiring this Numbers API by hand means pointing requests at its sandbox.whapi.com host, wiring the integer-generation call, and handling retries yourself. Through Jentic you install once, import the Numbers API from the API Directory, and your agent calls it.
- **Permission scoping:** This Numbers API carries its parameters in the request query rather than in the path, so limit the agent to the operation it needs, generating random integers. You choose the operations it may call, so nothing beyond that single read runs unless you add it.
- **Credential handling:** This Numbers API declares no authentication in its spec, so there is no credential to store; if your instance later adds one, Jentic One stores it once, encrypted, and injects it at execution time so it never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'generate random integers', and Jentic returns the matching Numbers API operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Github** — Alternative developer tools API
- **Gitlab** — Alternative developer tools API

## FAQ

### What authentication does the Numbers API use?

The Numbers API uses no authentication. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.

### Can I getrandomnumbers with the Numbers API?

Yes. Use the GET /generate/integers endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the Numbers API?

Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.

### How do I getrandomnumbers through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'getrandomnumbers'. Jentic returns the matching Numbers API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the Numbers API have?

The Numbers API exposes 1 endpoints covering generate operations.

### Can I limit what my agent is allowed to do with the Numbers API?

Yes. Because Jentic One is self-hosted, your own rules decide which operations the agent may call, and the Numbers API exposes only a single read operation, generating random integers via GET /generate/integers. You grant the agent just that one call, passing its parameters in the request query, so nothing else runs unless you explicitly add it. This API declares no authentication, so there is no credential to hand over beyond the operation you approve.
