Email lists

List all email lists

GET /fast-events/v1/admin/emaillists

List all email lists across the authorized events.

Optional query parameters

_fields

A comma separated string of fields included in the response. For example event_id,total.

Example request

$ curl \
  -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT"  \
  -H "Content-Type: application/json" \
  -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \
  https://exampledomain.com/wp-json/fast-events/v1/admin/emaillists

Example response

[
    {
        "event_id": 10,
        "total": 212,
        "_links": {
            "self": [
                {
                    "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/emaillists/10"
                }
            ],
            "collection": [
                {
                    "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/emaillists"
                }
            ]
        }
    },
    {
        "event_id": 14,
        "total": 949,
        "_links": {
            "self": [
                {
                    "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/emaillists/14"
                }
            ],
            "collection": [
                {
                    "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/emaillists"
                }
            ]
        }
    }
]

Changelog

Version

Description

2.0

Introduced.


List email list

GET /fast-events/v1/admin/emaillists/(integer: id)

Retrieve details of a single email list.

Optional query parameters

_fields

A comma separated string of fields included in the response. For example name,price.

Example request

$ curl \
  -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT"  \
  -H "Content-Type: application/json" \
  -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \
  https://exampledomain.com/wp-json/fast-events/v1/admin/emaillists/10

Example response

{
    "event_id": 10,
    "total": 212,
    "_links": {
        "self": [
            {
                "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/emaillists/10"
            }
        ],
        "collection": [
            {
                "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/emaillists"
            }
        ]
    }
}

Changelog

Version

Description

2.0

Introduced.


Delete email list

DELETE /fast-events/v1/admin/emaillists/(integer: id)

Delete a single ticket type.

Example request

$ curl \
  -X DELETE \
  -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT"  \
  -H "Content-Type: application/json" \
  -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \
  https://exampledomain.com/wp-json/fast-events/v1/admin/emaillists/10

Example response

{
    "deleted": true,
}

Changelog

Version

Description

2.0

Introduced.


Create email list

POST /fast-events/v1/admin/emaillists/(integer: id)

Create a new email list from a CSV-file. Create a spreadsheet with the name in the first column, the email address in the second column and the maximum number of tickets the person can buy in the third column, and save it as a csv-file. Use a comma (,) as field separator. Emailaddresses in the file need to be unique!

Example request

$ curl \
  -X POST \
  -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT"  \
  -H "Content-Type: application/json" \
  -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \
  -F "file=@path/to/local/file/emaillist.csv" \
  https://exampledomain.com/wp-json/fast-events/v1/admin/emaillists/10

Example response

{
    "event_id": 10,
    "total": 212,
    "_links": {
        "self": [
            {
                "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/emaillists/10"
            }
        ],
        "collection": [
            {
                "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/emaillists"
            }
        ]
    }
}

Changelog

Version

Description

2.0

Introduced.