# Missions

## User actions

## Get list of all available missions

<mark style="color:blue;">`GET`</mark> `https://api.derace.com/api/v1/missions`

#### Headers

| Name                                           | Type   | Description      |
| ---------------------------------------------- | ------ | ---------------- |
| x-api-key<mark style="color:red;">\*</mark>    | String | App's API key    |
| content-type<mark style="color:red;">\*</mark> | String | application/json |

{% tabs %}
{% tab title="200 " %}
```json
{
    "daily": [
        {
            "type": "run_x_races",
            "min": 1,
            "max": 10,
            "description": "run x races per day",
            "xp_base": 106,
            "xp_modifier": 10,
            "sugar_base": 10,
            "sugar_modifier": 1
        },
        {
            "type": "run_x_furlong_race",
            "min": 1,
            "max": 1,
            "description": "run x furlong race",
            "xp_base": 116,
            "xp_modifier": 0,
            "sugar_base": 11,
            "sugar_modifier": 0,
            "furlong_min": 2,
            "furlong_max": 15
        },
        {
            "type": "run_on_x_hippodrome",
            "min": 1,
            "max": 1,
            "description": "run a race on specific hippodrome",
            "xp_base": 116,
            "xp_modifier": 0,
            "sugar_base": 11,
            "sugar_modifier": 0,
            "hippodrome_type_min": 0,
            "hippodrome_type_max": 2
        },
        {
            "type": "run_x_races_of_y_furlongs_on_z",
            "min": 1,
            "max": 3,
            "description": "run x amount of races of y furlongs on z hippodrome",
            "xp_base": 83,
            "xp_modifier": 33,
            "sugar_base": 8,
            "sugar_modifier": 3,
            "hippodrome_type_min": 0,
            "hippodrome_type_max": 2,
            "furlong_min": 2,
            "furlong_max": 15
        },
        {
            "type": "run_x_races_y_furlong",
            "min": 1,
            "max": 5,
            "description": "run x races of y furlongs",
            "xp_base": 96,
            "xp_modifier": 20,
            "sugar_base": 10,
            "sugar_modifier": 2,
            "furlong_min": 2,
            "furlong_max": 15
        },
        {
            "type": "run_x_races_on_z",
            "min": 1,
            "max": 5,
            "description": "run x races on z hippodrome",
            "xp_base": 96,
            "xp_modifier": 20,
            "sugar_base": 10,
            "sugar_modifier": 2,
            "hippodrome_type_min": 0,
            "hippodrome_type_max": 2
        }
    ],
    "weekly": [
        {
            "type": "run_x_races",
            "min": 20,
            "max": 50,
            "description": "run x amount of races",
            "xp_base": 250,
            "xp_modifier": 16,
            "sugar_base": 25,
            "sugar_modifier": 1
        },
        {
            "type": "run_x_races_of_y_furlongs_on_z",
            "min": 10,
            "max": 20,
            "description": "run x amount of y furlong races on z",
            "xp_base": 83,
            "xp_modifier": 50,
            "sugar_base": 8,
            "sugar_modifier": 5,
            "hippodrome_type_min": 0,
            "hippodrome_type_max": 2,
            "furlong_min": 2,
            "furlong_max": 15
        },
        {
            "type": "take_prize_place_in_x_races",
            "min": 1,
            "max": 5,
            "description": "take prize position in x races",
            "xp_base": 458,
            "xp_modifier": 125,
            "sugar_base": 45,
            "sugar_modifier": 12,
            "place_min": 1,
            "place_max": 3
        },
        {
            "type": "run_all_on_z_hippodrome",
            "min": 14,
            "max": 14,
            "description": "run all distances on z hippodrome",
            "xp_base": 809,
            "xp_modifier": 1,
            "sugar_base": 75,
            "sugar_modifier": 1,
            "hippodrome_type_min": 0,
            "hippodrome_type_max": 2
        },
        {
            "type": "run_x_races_on_z_hippodrome",
            "min": 15,
            "max": 25,
            "description": "run x amount of races on z hippodrome",
            "xp_base": -166,
            "xp_modifier": 50,
            "sugar_base": -16,
            "sugar_modifier": 2
        }
    ],
    "monthly": [
        {
            "type": "run_x_races",
            "min": 80,
            "max": 100,
            "description": "run x amount of races",
            "xp_base": -5666,
            "xp_modifier": 100,
            "sugar_base": -550,
            "sugar_modifier": 10
        },
        {
            "type": "run_x_races_of_y_furlongs_on_z",
            "min": 20,
            "max": 40,
            "description": "run x amount of y furlong races on z",
            "xp_base": 333,
            "xp_modifier": 100,
            "sugar_base": 33,
            "sugar_modifier": 10,
            "hippodrome_type_min": 0,
            "hippodrome_type_max": 2,
            "furlong_min": 2,
            "furlong_max": 15
        },
        {
            "type": "take_prize_place_in_x_races",
            "min": 10,
            "max": 25,
            "description": "take prize position in x races",
            "xp_base": 1000,
            "xp_modifier": 133,
            "sugar_base": 100,
            "sugar_modifier": 13,
            "place_min": 1,
            "place_max": 3
        },
        {
            "type": "run_all",
            "min": 30,
            "max": 30,
            "description": "run all distances",
            "xp_base": 3306,
            "xp_modifier": 1,
            "sugar_base": 320,
            "sugar_modifier": 1
        },
        {
            "type": "run_x_races_on_z_hippodrome",
            "min": 25,
            "max": 40,
            "description": "run x amount of races on z hippodrome",
            "xp_base": 333,
            "xp_modifier": 100,
            "sugar_base": 33,
            "sugar_modifier": 10,
            "hippodrome_type_min": 0,
            "hippodrome_type_max": 2
        },
        {
            "type": "take_i_place_x_races",
            "min": 5,
            "max": 10,
            "description": "run x amount of races on z hippodrome",
            "xp_base": 333,
            "xp_modifier": 400,
            "sugar_base": 33,
            "sugar_modifier": 40,
            "place_min": 1,
            "place_max": 12
        }
    ]
}
```
{% endtab %}

{% tab title="401 Permission denied" %}

{% endtab %}
{% endtabs %}

