---
url: >-
  https://game-engine-io.github.io/enginex-frontend-sdk/reference/api/@getenginex/sdk-igaming/interfaces/MissionsApi.md
---
[Reference](../../../index.md) / [@getenginex/sdk-igaming](../index.md) / MissionsApi

# MissionsApi

Operator missions and the player's progress. Both methods require login. There is no `claim()`: the
reward is automatic (inferred; see the "Missions" page).

## Methods

### list()

> **list**(`input?`, `options?`): `Promise`<[`Page`](../../sdk/interfaces/Page.md)<[`Mission`](Mission.md)>>

Active operator missions, paginated. The gateway lists only the active ones and has no filter by type.

#### Parameters

##### input?

[`ListMissionsInput`](ListMissionsInput.md)

##### options?

[`CallOptions`](../../sdk/interfaces/CallOptions.md)

#### Returns

`Promise`<[`Page`](../../sdk/interfaces/Page.md)<[`Mission`](Mission.md)>>

#### Example

```ts
const page = await igaming.missions.list({ perPage: 20 })
page.items.forEach((mission) => renderMission(mission.name, mission.targetValue))
```

#### Throws

`CONFIGURATION_ERROR` (without a request) for a `page` that is not an integer ≥ 1 or
a `perPage` outside 1–100 or not an integer; `UNAUTHENTICATED` without a session.

***

### listMine()

> **listMine**(`params?`, `options?`): `Promise`<[`UserMission`](UserMission.md)\[]>

The player's progress on the active missions, without pagination.

#### Parameters

##### params?

[`NoParams`](../../sdk/type-aliases/NoParams.md)

##### options?

[`CallOptions`](../../sdk/interfaces/CallOptions.md)

#### Returns

`Promise`<[`UserMission`](UserMission.md)\[]>

#### Example

```ts
const mine = await igaming.missions.listMine()
const open = mine.filter((m) => m.status === 'in_progress')
```

#### Throws

`UNAUTHENTICATED` without a session.
