# Rules

Rules APIs provided by Fraud Prevention are used to fine-tune Fraud Prevention decisions.


## Servers

Sandbox environment
```
https://api.sbx.transmitsecurity.io/risk/v1
```

Production environment (US)
```
https://api.transmitsecurity.io/risk/v1
```

Production environment (EU)
```
https://api.eu.transmitsecurity.io/risk/v1
```

Production environment (CA)
```
https://api.ca.transmitsecurity.io/risk/v1
```

Production environment (AU)
```
https://api.au.transmitsecurity.io/risk/v1
```

## Security

### risk_access_token

An access token generated by the [token endpoint](/openapi/token.openapi/other/getaccesstoken)

Type: http
Scheme: bearer
Bearer Format: JWT

## Download OpenAPI description

[Rules](https://developer.transmitsecurity.com/_bundle/openapi/risk/rules.openapi.yaml)

## Other

### Create rule

 - [POST /rules](https://developer.transmitsecurity.com/openapi/risk/rules.openapi/other/createrule.md): Creates a new recommendation rule. Returns the rule_id used to reference the rule in subsequent requests, along with the rule data.

### Get all rules

 - [GET /rules](https://developer.transmitsecurity.com/openapi/risk/rules.openapi/other/getrules.md): Retrieves a list of all recommendation rules

### Get rule by ID

 - [GET /rules/{rule_id}](https://developer.transmitsecurity.com/openapi/risk/rules.openapi/other/getrulebyid.md): Retrieves a specific recommendation rule by its ID

### Update rule by ID

 - [PUT /rules/{rule_id}](https://developer.transmitsecurity.com/openapi/risk/rules.openapi/other/updaterule.md): Updates a specific recommendation rule

### Delete rule by ID

 - [DELETE /rules/{rule_id}](https://developer.transmitsecurity.com/openapi/risk/rules.openapi/other/deleterule.md): Deletes a specific recommendation rule. Note that you can also disable rules if needed using the enabled rule attribute.

