canonical: https://jentic.com/apis/replit.com/replit

# Replit API

The Replit API administers a Replit Enterprise Account: it lists the Account's workspaces, members, groups, and group users, and reviews the approval queues for member access, project publishing, public publishing, and budget limit increases. It also reports usage-ledger consumption and gross cost with groupBy breakdowns by workspace, member, project, conversations, or timeseries, sets Account, workspace, group, or user budgets, lists deployments per workspace, and reads compliance message events that carry the full promptText of project.message_sent audit events. Every operation is scoped to the Account that owns the presented API key.

## For AI agents

Administer a Replit Enterprise Account: list workspaces, members, and groups, approve or deny access, publishing, and budget requests, read usage and gross cost, set budgets, and pull compliance message events.

## Scope

Does not create Repls, run code, edit project files, or manage deployments beyond reading them. Use for Replit Enterprise Account administration, usage reporting, budgets, and compliance exports only.

## Capabilities

- Approve or deny a pending member access request with an optional denial reason
- Review project publishing and public publishing requests with an approved or denied outcome
- Break down usage and gross cost by workspace, member, project, conversations, or timeseries for the current or previous billingPeriod
- Set or clear Account spending controls, workspace default user limits, and group or user budgets in USD
- Approve a budget limit increase request with a final amountUsd
- List members, groups, and the users in a group across the Account's workspaces
- Read compliance message events with promptText over a window of up to 24 hours

## Use cases

### Agent-assisted approvals queue

An admin agent connected through Jentic lists pending member access, publishing, and budget limit increase requests, summarises each one, and submits an approved or denied outcome once the admin decides. Budget approvals carry the final amountUsd, and denials can record a reason that appears in the request's event history.

Example prompt: Call GET `/members/access-requests` with status set to pending, then POST `/members/access-requests/{requestId}/reviews` with outcome set to approved for the request the admin selected

### Usage and cost reporting

Finance and platform teams pull gross usage-ledger cost for the Account and break it down with groupBy=member or groupBy=project, optionally adding breakdownBy=member. Custom startTime and endTime ranges cover up to 366 days, and costs are gross values that exclude credits and discounts.

Example prompt: Call GET /usage with billingPeriod set to previous and groupBy set to member, then rank members by cost

### Budget guardrails

Admins set Account spending controls with a usageAlertThresholdUsd below the serviceShutdownLimitUsd, or a workspace default per-user limit, through one budget operation, then list current budgets to confirm them.

Example prompt: Call POST /budgets with type set to workspace_default_user_limit, workspaceId set to the workspace id, currency USD, period billing_cycle, and amountUsd set to 50, then GET /budgets to confirm

### Compliance export of agent prompts

Compliance teams retrieve project.message_sent events with the full promptText for a window of up to 24 hours, page through results with a cursor, and deduplicate by eventId, because events can arrive after their occurredAt.

Example prompt: Call GET `/compliance/messages` with occurredAfter set to 2026-11-12T00:00:00Z and occurredBefore set to 2026-11-13T00:00:00Z, following the cursor until no more events return

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/members` | List Account members |
| POST | `/members/access-requests/{requestId}/reviews` | Approve or deny a member access request |
| GET | `/usage` | Get usage and gross ledger cost |
| POST | `/budgets` | Set or clear a budget |
| POST | `/budgets/limit-increase-requests/{requestId}/reviews` | Approve or deny a budget limit increase |
| GET | `/deployments` | List workspace deployments |
| GET | `/groups/{groupId}/users` | List users in a group |
| GET | `/compliance/messages` | List Account compliance message events |

## Key resources

- **Workspaces** — Workspaces owned by the Account
- **Members and groups** — Account members, workspace groups, and group users
- **Access and publishing requests** — Member access, publishing, and public publishing approval queues with reviews
- **Usage** — Usage-ledger consumption and gross cost with groupBy breakdowns
- **Budgets** — Account, workspace, group, and user budgets plus limit increase requests
- **Deployments** — Workspace deployments with status
- **Compliance messages** — Audit message events including promptText

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 68 / 100
- **Maturity:** AI-Aware
- **Dimensions:**
  - Foundational Compliance: 74 / 100
  - Developer Experience & Jentic Compatibility: 71 / 100
  - AI-Readiness & Agent Experience: 53 / 100
  - Agent Usability: 94 / 100
  - Security: 60 / 100
  - AI Discoverability: 71 / 100
- **View full report:** https://jentic.com/apis/replit.com/replit/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring the Replit API by hand means handling its rpl_ bearer key, cursor pagination, If-Match headers on publishing reviews, and the usage endpoint's groupBy and billingPeriod rules. Through Jentic you install once, import Replit from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** Replit puts request, group, workspace, and deployment ids in the URL path (`/groups/{groupId}/users`, `/deployments/{deploymentId}`), so a rule can bind your agent to one group or one deployment. You choose the operations it may call, so approval reviews and budget changes are not included unless you add them.
- **Credential handling:** Your Replit API key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'Replit usage by member' or 'approve a budget request', and Jentic returns the matching Replit operation with its input schema so the agent sends valid groupBy, outcome, and amountUsd values.

## Related APIs

- **Okta Admin Management API** — Identity directory and user lifecycle
- **GitHub Enterprise Cloud API** — Enterprise administration for GitHub organizations
- **Vercel API** — Deployments, projects, and team administration

## FAQ

### What authentication does the Replit API use?

Per its OpenAPI spec, the Replit API authenticates with an Account API key beginning with rpl_, sent as a bearer token in the Authorization header. Results are scoped to the Account that owns the key. Through Jentic, the key is stored encrypted by your own Jentic One instance and injected at execution time.

### Can I see Replit usage cost per member?

Yes. GET /usage with groupBy=member returns usage and gross cost per member, and groupBy also accepts workspace, project, conversations, and timeseries. Choose billingPeriod current or previous, or pass startTime and endTime for a custom range of up to 366 days. Costs are gross usage-ledger values, not settled invoices.

### How do I approve a Replit budget limit increase?

List requests with GET `/budgets/limit-increase-requests`, then POST to `/budgets/limit-increase-requests/{requestId}/reviews` with outcome set to approved and amountUsd set to the final limit, which must exceed the current limit. A denied outcome can carry a reason shown to the requester.

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

The OpenAPI spec defines a 429 response for when the API key or operation exceeds its rate limit, but it does not publish the numbers. Check https://docs.replit.com for current limits.

### How do I list pending Replit access requests through Jentic?

Search Jentic for 'list Replit member access requests'. Jentic returns GET `/members/access-requests` with its input schema, your agent sets status, and Jentic sends the call with your stored key. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Is there a Replit MCP server?

You don't need an MCP server to give your agent the Replit API. Jentic connects it directly from the API Directory: import it, store your API key once, and your agent discovers the admin operations on demand instead of loading all their tool definitions into context.

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

Yes. For a reporting agent, write a rule that allows GET /usage, GET /members, and GET /deployments only; it can then read cost, membership, and deployment status but cannot approve requests or change budgets. For a group-auditing agent, allow GET `/groups/{groupId}/users` for one group id.
