Registrations

GET /tournaments/{tournament_id}/registrations

Authorized Access

Returns the registrations of the given tournament.

Resource URL

https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/registrations

HTTP headers

  • X-Api-Key
    string

    API key of your application (see Authentication)

  • Authorization
    string

    Access token with organizer:registration scope (see Authorization)

  • Range
    string

    A range of requested items using the registrations unit. The size of the range cannot exceed 50. (see Pagination)

    Example: registrations=0-49

Query Parameters

  • sort
    string

    A method to sort the filtered data. created_asc and created_desc sorts using the date the registration was added.

    Possible values: created_asc, created_desc

    Default: created_asc

Request Body

This endpoint doesn't require a request body.

Response

[206] Registrations retrieved

Example
[
    {
        "id": "375143143408309123",
        "status": "pending",
        "name": "A team or player name",
        "custom_fields": {
            "country": "GB",
            "twitter": "twitter_id"
        },
        "lineup": [
            {
                "name": "A team player name",
                "email": "player_1@team.com",
                "custom_fields": {
                    "country": "GB",
                    "twitter": "twitter_id"
                }
            }
        ]
    }
]
Structure (collection)
  • id
    string

    An unique identifier for this registration

    Example: "375143143408309123"

  • status
    string

    The status of the registration

    Possible values: pending, accepted, refused, cancelled

  • name
    string

    A name (maximum 40 characters)

    Example: "A team or player name"

  • custom_fields
    object

    The values of the custom fields configured in the tournament using the machine names as keys

    For more information, please read the Custom Fields documentation.

  • lineup
    array[object]

    Optional

    A list of team players

GET /tournaments/{tournament_id}/registrations/{id}

Authorized Access

Returns a registration by the given id and tournament. If the registration does not exist or is not associated to the tournament, the endpoint will return a 404 (Not Found).

Resource URL

https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/registrations/{id}

HTTP headers

  • X-Api-Key
    string

    API key of your application (see Authentication)

  • Authorization
    string

    Access token with organizer:registration scope (see Authorization)

Path parameters

  • tournament_id
    string

    The id of the tournament containing the registration

  • id
    string

    The unique identifier of the registration to retrieve

Query Parameters

This endpoint doesn't have any query parameters.

Request Body

This endpoint doesn't require a request body.

Response

[200] Registration retrieved

Example
{
    "id": "375143143408309123",
    "status": "pending",
    "name": "A team or player name",
    "custom_fields": {
        "country": "GB",
        "twitter": "twitter_id"
    },
    "lineup": [
        {
            "name": "A team player name",
            "email": "player_1@team.com",
            "custom_fields": {
                "country": "GB",
                "twitter": "twitter_id"
            }
        }
    ]
}
Structure (object)
  • id
    string

    An unique identifier for this registration

    Example: "375143143408309123"

  • status
    string

    The status of the registration

    Possible values: pending, accepted, refused, cancelled

  • name
    string

    A name (maximum 40 characters)

    Example: "A team or player name"

  • custom_fields
    object

    The values of the custom fields configured in the tournament using the machine names as keys

    For more information, please read the Custom Fields documentation.

  • lineup
    array[object]

    Optional

    A list of team players