# Route

Optional configuration, you need to configure the record through MX first. We can forward reply message to the mailbox you specify or push the message to the specified URL.


# Query( batch)

URL

https://api2.sendcloud.net/api/route/list
1

HTTP Request Method

post    get
1

Parameter Description

parameter type required or not description
apiUser string yes API_USER
apiKey string yes API_KEY
domain string no domain name
start int no start position, [0-], defaults to 0
limit int no amount, [0-100],defaults to 100

Request Example

https://api2.sendcloud.net/api/route/list?apiUser=***&apiKey=***&domain=post.sc.com&start=0&limit=10
1

Returned Value Description

parameter description
id route ID
domain domain name
expression receiving route
action URL/Email
apiUserRoute When the action is set to "email address" this parameter is required.

Returned Value Example:

{
  "info": {
    "dataList": [
      {
        "id": 1,
        "domain": "post.sc.com",
        "expression": "*@post.sc.com",
        "action": "http://requestb.in/13kup3a1"
      },
      {
        "id": 2,
        "domain": "notice.sc.com",
        "expression": "*@notice.sc.com",
        "action": "admin@notice.sc.com",
        "apiUserRoute": "sctest"
      }
    ],
    "total": 2,
    "count": 2
  },
  "statusCode": 200,
  "message": "request was successful",
  "result": true
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

# Query

URL

https://api2.sendcloud.net/api/route/get
1

HTTP Request Method

post    get
1

parameter

parameter type required or not description
apiUser string no API_USER
apiKey string no API_KEY
routeId int no route ID

Request Example

https://api2.sendcloud.net/api/route/get?apiUser=***&apiKey=***&routeId=1
1

Returned Value Description

parameter description
id route ID
domain domain name
expression receiving route
action URL/Email
apiUserRoute API_USER

Returned Value Example:

{
  "info": {
    "data": {
      "id": 1,
      "domain": "post.sc.com",
      "expression": "*@post.sc.com",
      "action": "admin@post.sc.com",
      "apiUserRoute": "sctest"
    }
  },
  "statusCode": 200,
  "message": "request was successful",
  "result": true
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14

# Add

URL

https://api2.sendcloud.net/api/route/add
1

HTTP Request Method

post    get
1

parameter

parameter type required or not description
apiUser string yes API_USER
apiKey string yes API_KEY
expression string yes receiving route. Format is 'regular expression@domain'; it can also be a specific email address. The domain/email domain must be a verified or usable sending domain.
action string yes URL/Email
apiUserRoute string * When the action is set to "email address" this parameter is required.

Request Example

https://api2.sendcloud.net/api/route/add?apiUser=***&apiKey=***&expression=*@post.sc.com&action=admin@post.sc.com&apiUserRoute=sctest
1

Returned Value Description

parameter description
id route ID
domain domain
expression receiving route
action URL/Email
apiUserRoute When the action is set to "email address," this parameter is required.

Returned Value Example:

{
  "info": {
    "data": {
      "id": 1,
      "domain": "post.sc.com",
      "expression": "*@post.sc.com",
      "action": "admin@post.sc.com",
      "apiUserRoute": "sctest"
    }
  },
  "statusCode": 200,
  "message": "request was successful",
  "result": true
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14

# Modify

URL

https://api2.sendcloud.net/api/route/update
1

HTTP Request Method

post    get
1

parameter

parameter type required or not description
apiUser string yes API_USER
apiKey string yes API_KEY
routeId int yes route ID
expression string yes receiving route
action string yes URL/Email
apiUserRoute string * When the action is set to "email address" this parameter is required.

Request Example

https://api2.sendcloud.net/api/route/update?apiUser=***&apiKey=***&routeId=1&expression=*@post.sc.com&action=http://requestb.in/13kup3a1
1

Returned Value Description

parameter description
count count of modified receiving route

Returned Value Example:

{
  "statusCode": 200,
  "info": {
    "count": 1
  },
  "message": "request was successful",
  "result": true
}
1
2
3
4
5
6
7
8

# Delete

URL

https://api2.sendcloud.net/api/route/delete
1

HTTP Request Method

post    get
1

parameter

parameter type required or not description
apiUser string yes API_USER
apiKey string yes API_KEY
routeId int yes route ID

Request Example

https://api2.sendcloud.net/api/route/delete?apiUser=***&apiKey=***&routeId=1
1

Returned Value Description

parameter description
count count of receiving receiving route

Returned Value Example:

{
  "statusCode": 200,
  "info": {
    "count": 1
  },
  "message": "request was successful",
  "result": true
}
1
2
3
4
5
6
7
8
Last Updated: 2025/03/25 10:38:59