# Replit

> Read Enterprise workspaces, members, projects, deployments and spending, and review administrative requests.

App · 24 actions. Web page: https://docs.lodol.com/docs/integrations/replit

## Actions

### Approve or deny one Budget limit increase request

Approve or deny a pending budget limit increase request. Approving it also applies the new limit.

**Inputs**

- Request id (`request_id`, text, required): Request id.
- If match (`if_match`, text, required): If match.
- Outcome (`outcome`, text, required): Outcome. One of: `approved`, `denied`.
- Reason (`reason`, text): Reason.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": {
      "appliedLimitUsd": 1.0,
      "approvedLimitUsd": 1.0,
      "createdAt": "example",
      "currentLimitUsd": 1.0,
      "events": [],
      "group": {},
      "groupId": "example",
      "id": "example",
      "limitAtRequestUsd": 1.0,
      "requestedAmountUsd": 1.0,
      "requester": {},
      "requesterUserId": "example",
      "status": "pending",
      "type": "workspace_default_user_limit",
      "updatedAt": "example",
      "version": 1,
      "workspace": {},
      "workspaceId": "example"
    }
  }
}
```

### Approve or deny one member access request

Approve or deny a pending member access request. The person who created the API key must be allowed to change member roles in the workspace.

**Inputs**

- Request id (`request_id`, text, required): Request id.
- If match (`if_match`, text, required): If match.
- Outcome (`outcome`, text, required): Outcome. One of: `approved`, `denied`.
- Reason (`reason`, text): Reason.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": {
      "alreadyMember": false,
      "createdAt": "example",
      "events": [],
      "id": "example",
      "reason": "example",
      "requester": {},
      "requesterUserId": "example",
      "status": "pending",
      "type": "member_seat_upgrade",
      "updatedAt": "example",
      "version": 1,
      "workspaceId": "example"
    }
  }
}
```

### Get a deployment

Get one deployment in a workspace your account owns.

**Inputs**

- Deployment id (`deployment_id`, text, required): Deployment id.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": {
      "createdAt": "example",
      "deploymentPrivacy": "public",
      "id": "example",
      "project": {
        "id": "example",
        "title": "example"
      },
      "status": "pending",
      "updatedAt": "example",
      "url": "example",
      "workspace": {
        "id": "example",
        "name": "example",
        "slug": "example"
      }
    }
  }
}
```

### Get a public publish enablement request

Get one request to enable public publishing, with its history in order.

**Inputs**

- Request id (`request_id`, text, required): Request id.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": {
      "createdAt": "example",
      "events": [],
      "id": "example",
      "projectId": "example",
      "requesterUserId": "example",
      "status": "pending",
      "updatedAt": "example",
      "version": 1,
      "workspaceId": "example"
    }
  }
}
```

### Get a publishing approval request

Get one publishing approval request, with its history in order.

**Inputs**

- Request id (`request_id`, text, required): Request id.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": {
      "createdAt": "example",
      "events": [],
      "execution": {
        "message": "example",
        "operationId": "example"
      },
      "id": "example",
      "projectId": "example",
      "requesterUserId": "example",
      "status": "pending",
      "updatedAt": "example",
      "version": 1,
      "workspaceId": "example"
    }
  }
}
```

### Get Account usage and gross ledger cost

Get your account's usage and gross cost, as shown on Replit's Usage settings page.

**Inputs**

- Workspace (`workspace_id`, text): Workspace id.
- Group (`group_id`, text): Group id.
- User id (`resource_user_id`, text): User id.
- Project id (`project_id`, text): Project id.
- Billing period (`billing_period`, text): Billing period. One of: `current`, `previous`.
- Start time (`start_time`, date and time): Start time.
- End time (`end_time`, date and time): End time.
- Type (`type`, list): Type. One or more of: `agent`, `replit_ai_integrations` (Replit ai integrations), `tools`, `autoscale_deployment_compute` (Autoscale deployment compute), `autoscale_deployment` (Autoscale deployment), `autoscale_requests` (Autoscale requests), `azure_container_app_usage` (Azure container app usage), `azure_vm_compute` (Azure vm compute), `always_on_deployment_compute` (Always on deployment compute), `scheduled_deployment_compute` (Scheduled deployment compute), and 17 more.
- Group by (`group_by`, text): Group by. One of: `workspace`, `member`, `project`, `conversations`, `timeseries`.
- Breakdown by (`breakdown_by`, text): Breakdown by. One of: `member`.
- Granularity (`granularity`, text): Granularity. One of: `day`. Default: `day`.
- Limit (`limit`, number): Limit. From 1 to 100. Default: `50`.
- Cursor (`cursor`, text): Cursor.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": {
      "attributableTotalCostUsd": 1.0,
      "breakdownBy": "member",
      "currency": "USD",
      "groupBy": "workspace",
      "groups": [],
      "interval": {
        "endTime": "example",
        "startTime": "example"
      },
      "metrics": [],
      "pagination": {},
      "totalCostUsd": 1.0,
      "unattributableTotalCostUsd": 1.0
    }
  }
}
```

### Get an Account workspace

Get one workspace your account owns.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": {
      "admins": [],
      "createdAt": "example",
      "id": "example",
      "memberCount": 1,
      "name": "example",
      "projectCount": 1,
      "slug": "example"
    }
  }
}
```

### Get one Budget limit increase request

Get one budget limit increase request, with its history in order.

**Inputs**

- Request id (`request_id`, text, required): Request id.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": {
      "appliedLimitUsd": 1.0,
      "approvedLimitUsd": 1.0,
      "createdAt": "example",
      "currentLimitUsd": 1.0,
      "events": [],
      "group": {},
      "groupId": "example",
      "id": "example",
      "limitAtRequestUsd": 1.0,
      "requestedAmountUsd": 1.0,
      "requester": {},
      "requesterUserId": "example",
      "status": "pending",
      "type": "workspace_default_user_limit",
      "updatedAt": "example",
      "version": 1,
      "workspace": {},
      "workspaceId": "example"
    }
  }
}
```

### Get one member access request

Get one member access request, including its history.

**Inputs**

- Request id (`request_id`, text, required): Request id.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": {
      "alreadyMember": false,
      "createdAt": "example",
      "events": [],
      "id": "example",
      "reason": "example",
      "requester": {},
      "requesterUserId": "example",
      "status": "pending",
      "type": "member_seat_upgrade",
      "updatedAt": "example",
      "version": 1,
      "workspaceId": "example"
    }
  }
}
```

### List Account and Workspace budgets

List your account's spending controls and the Agent usage limits for its workspaces, groups and members. Account controls apply to usage-based spend; workspace, group and member limits apply to Agent usage in the current billing cycle.

**Inputs**

- Workspace (`workspace_id`, text): Workspace id.
- Type (`type`, text): Type. One of: `account_spending_controls` (Account spending controls), `workspace_default_user_limit` (Workspace default user limit), `workspace_group_limit` (Workspace group limit), `workspace_user_limit` (Workspace user limit).
- Limit (`limit`, number): Limit. From 1 to 100. Default: `50`.
- Cursor (`cursor`, text): Cursor.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {}
  }
}
```

### List Account members

List your account's members, ordered by user ID. You can limit the list to one workspace.

**Inputs**

- Workspace (`workspace_id`, text): Workspace id.
- Limit (`limit`, number): Limit. From 1 to 100. Default: `50`.
- Cursor (`cursor`, text): Cursor.
- Role (`role`, text): Role. One of: `admin`, `member`, `viewer`, `guest`.
- Search (`search`, text): Search.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {}
  }
}
```

### List Account messages

List your account's audit events for messages sent in projects, each with the full text of the user's prompt. Results cover the account the API key belongs to.

**Inputs**

- Occurred after (`occurred_after`, date and time): Occurred after.
- Occurred before (`occurred_before`, date and time): Occurred before.
- Limit (`limit`, number): Limit. From 1 to 100. Default: `25`.
- Message ref (`message_ref`, text): Message ref.
- Cursor (`cursor`, text): Cursor.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {}
  }
}
```

### List Account projects

List the projects in your account's team workspaces, newest first.

**Inputs**

- Workspace (`workspace_id`, text): Workspace id.
- Limit (`limit`, number): Limit. From 1 to 100. Default: `50`.
- Cursor (`cursor`, text): Cursor.
- Search (`search`, text): Search.
- Has deployment (`has_deployment`, true/false): Has deployment.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {}
  }
}
```

### List Account workspaces

List the workspaces your account owns, newest first.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 100. Default: `50`.
- Cursor (`cursor`, text): Cursor.
- Search (`search`, text): Search.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {}
  }
}
```

### List Budget limit increase requests

List your account's requests to increase a budget limit.

**Inputs**

- Status (`status`, list): Status. One or more of: `pending`, `approved`, `fulfillment_started` (Fulfillment started), `fulfilled`, `fulfillment_failed` (Fulfillment failed), `denied`, `canceled`. Default: `["pending"]`.
- Workspace (`workspace_id`, text): Workspace id.
- Type (`type`, text): Budget limit targeted by the request. workspace_user_limit raises the requester's own member limit. workspace_default_user_limit raises the workspace default member limit. workspace_group_limit raises the shared aggregate limit of the group identified by groupId, not the requester's individual limit. One of: `workspace_default_user_limit` (Workspace default user limit), `workspace_user_limit` (Workspace user limit), `workspace_group_limit` (Workspace group limit).
- Include events (`include_events`, true/false): Include events. Default: `false`.
- Limit (`limit`, number): Limit. From 1 to 100. Default: `50`.
- Cursor (`cursor`, text): Cursor.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {}
  }
}
```

### List member access requests

List your account's member access requests. These are requests from workspace viewers for a member seat.

**Inputs**

- Status (`status`, list): Status. One or more of: `pending`, `notified`, `approved`, `fulfillment_started` (Fulfillment started), `fulfilled`, `fulfillment_failed` (Fulfillment failed), `denied`, `canceled`. Default: `["pending"]`.
- Workspace (`workspace_id`, text): Workspace id.
- Include events (`include_events`, true/false): Include events. Default: `false`.
- Limit (`limit`, number): Limit. From 1 to 100. Default: `50`.
- Cursor (`cursor`, text): Cursor.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {}
  }
}
```

### List public publish enablement requests

List your account's requests to enable public publishing.

**Inputs**

- Status (`status`, list): Status. One or more of: `pending`, `approved`, `fulfillment_started` (Fulfillment started), `fulfilled`, `fulfillment_failed` (Fulfillment failed), `denied`, `canceled`. Default: `["pending"]`.
- Workspace (`workspace_id`, text): Workspace id.
- Project id (`project_id`, text): Project id.
- Limit (`limit`, number): Limit. From 1 to 100. Default: `50`.
- Cursor (`cursor`, text): Cursor.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {}
  }
}
```

### List publishing approval requests

List your account's publishing approval requests.

**Inputs**

- Status (`status`, list): Status. One or more of: `pending`, `approved`, `fulfillment_started` (Fulfillment started), `fulfilled`, `fulfillment_failed` (Fulfillment failed), `denied`, `canceled`. Default: `["pending"]`.
- Workspace (`workspace_id`, text): Workspace id.
- Project id (`project_id`, text): Project id.
- Limit (`limit`, number): Limit. From 1 to 100. Default: `50`.
- Cursor (`cursor`, text): Cursor.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {}
  }
}
```

### List users in a group

List the active users in one group shown under Workspace Groups.

**Inputs**

- Group id (`group_id`, text, required): Group id.
- Limit (`limit`, number): Limit. From 1 to 100. Default: `50`.
- Cursor (`cursor`, text): Cursor.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {}
  }
}
```

### List workspace deployments

List the deployments in one of your account's workspaces, most recently published first.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.
- Limit (`limit`, number): Limit. From 1 to 100. Default: `50`.
- Cursor (`cursor`, text): Cursor.
- Project id (`project_id`, text): Project id.
- Status (`status`, text): Current serving build lifecycle status. One of: `pending`, `building`, `security_scanning` (Security scanning), `running`, `promoting`, `failed`, `success`, `updating_tier` (Updating tier), `suspending`, `suspended`, `resuming`.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {}
  }
}
```

### List workspace groups

List the groups shown under Workspace Groups across your account.

**Inputs**

- Workspace (`workspace_id`, text): Workspace id.
- Limit (`limit`, number): Limit. From 1 to 100. Default: `50`.
- Cursor (`cursor`, text): Cursor.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {}
  }
}
```

### Review a public publish enablement request

Approve or deny a pending request to enable public publishing.

**Inputs**

- Request id (`request_id`, text, required): Request id.
- If match (`if_match`, text, required): If match.
- Outcome (`outcome`, text, required): Outcome. One of: `approved`, `denied`.
- Reason (`reason`, text): Reason.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": {
      "createdAt": "example",
      "events": [],
      "id": "example",
      "projectId": "example",
      "requesterUserId": "example",
      "status": "pending",
      "updatedAt": "example",
      "version": 1,
      "workspaceId": "example"
    }
  }
}
```

### Review a publishing approval request

Approve or deny a pending publishing approval request.

**Inputs**

- Request id (`request_id`, text, required): Request id.
- If match (`if_match`, text, required): Opaque token for this request. Copy the complete value unchanged; do not construct or parse it.
- Outcome (`outcome`, text, required): Outcome. One of: `approved`, `denied`.
- Reason (`reason`, text): Reason.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": {
      "createdAt": "example",
      "events": [],
      "execution": {
        "message": "example",
        "operationId": "example"
      },
      "id": "example",
      "projectId": "example",
      "requesterUserId": "example",
      "status": "pending",
      "updatedAt": "example",
      "version": 1,
      "workspaceId": "example"
    }
  }
}
```

### Set or clear a budget

Set, replace or clear one budget or limit, as the Usage settings page does. Sending the same request again changes nothing.

**Inputs**

- Request body (`request_body`, object, required): Request body.

**Outputs**

- `data` (object): Replit response data.

**Example output**

```json
{
  "data": {
    "data": {}
  }
}
```
