Skip to main content
POST
/
v1
/
lines
Create Line
curl --request POST \
  --url https://api.reselliptv.com/v1/lines \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "duration": "12",
  "username": "<string>",
  "password": "<string>",
  "label": "My TV Line",
  "connections": 1,
  "macaddress": "67:21:4C:24:76:97",
  "parental_code": "0000",
  "bouquets": [
    1,
    2,
    3
  ],
  "enabled": true
}
'
{
  "line": {
    "id": "<string>",
    "hostname": "<string>",
    "username": "<string>",
    "password": "<string>",
    "label": "<string>",
    "enabled": true,
    "connections": 123,
    "macaddress": "<string>",
    "parental_code": "<string>",
    "is_trial": true,
    "exp_date": "Tue Dec 03 2024 18:44:34 GMT+0100 (GMT+01:00)",
    "start_date": "Tue Dec 03 2024 18:44:34 GMT+0100 (GMT+01:00)",
    "created_at": "Tue Dec 03 2024 18:44:34 GMT+0100 (GMT+01:00)"
  },
  "deducedCredits": 25,
  "newBalance": 4975
}

Authorizations

x-api-key
string
header
required

API Key

Body

application/json
duration
enum<string>
required

The duration of the line in months. Valid values are '1', '3', '6', or '12'.

Available options:
1,
3,
6,
12
Example:

"12"

username
string

The username of the line. Must be RFC 3986 compliant. If not provided, a random username will be generated.

Required string length: 12 - 30
password
string

The password of the line. Must be RFC 3986 compliant. If not provided, a random password will be generated.

Required string length: 14 - 30
label
string

The label of the line.

Maximum string length: 30
Example:

"My TV Line"

connections
number
default:1

The number of simultaneous connections allowed for the line. Should be an integer between 1 and 6.

Required range: 1 <= x <= 6
Example:

1

macaddress
string

The MAC address to assign to the line.

Example:

"67:21:4C:24:76:97"

parental_code
string

The parental code of the MAG access. Should be 4 digits.

Required string length: 4
Example:

"0000"

bouquets
number[]

The IDs of the bouquets to link on creation of the line.

Example:
[1, 2, 3]
enabled
boolean
default:true

Specifies whether the created line should be active or not.

Response

OK: Returns the created line.

line
object
required
deducedCredits
number
required
Example:

25

newBalance
number
required
Example:

4975