> ## Documentation Index
> Fetch the complete documentation index at: https://docs.malga.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Listar sessões

> API SDK Documentação - Sessions

Liste todas as suas sessões.

### Método

<Tabs>
  <Tab title="Node.js">
    ```typescript theme={null}
    import { Malga } from 'malga'

    const malga = new Malga({
      apiKey: '17a64c8f-a387-4682-bdd8-d280493715e0',
      clientId: 'd1d2b51a-0446-432a-b055-034518c2660e',
    })

    await malga.sessions.list()
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Response">
    ```typescript theme={null}
    {
      items: [
        {
          id: 'bbc9d986-b65e-48fe-b879-2e1df10aea87',
          name: 'Link de Pagamento',
          status: 'created',
          isActive: true,
          clientId: 'd1d2b51a-0446-432a-b055-034518c2660e',
          orderId: null,
          amount: 100,
          currency: 'BRL',
          capture: null,
          merchantId: '8cfef0d1-73af-4bdb-b6c4-09ad3fbfc7f1',
          dueDate: '2023-12-31T03:00:00.000Z',
          description: null,
          statementDescriptor: null,
          items: [
            {
              name: 'Produto 1',
              description: null,
              unitPrice: 100,
              quantity: 1,
              tangible: null
            }
          ],
          paymentLink: '',
          paymentMethods: [
            {
              paymentType: 'pix',
              expiresIn: 500
            },
            {
              paymentType: 'credit',
              installments: 1,
              recurrence: null
            },
            {
              paymentType: 'boleto',
              expiresDate: '2023-12-31T00:00:00.000Z',
              instructions: null
            },
            {
              paymentType: 'drip',
              successRedirectUrl: null,
              cancelRedirectUrl: null
            }
          ],
          createdAt: '2023-01-31T00:00:00.000Z',
          updatedAt: '2023-01-31T00:00:00.000Z',
          publicKey: 'b8d59a73-fd16-4d6b-9e0f-9d7b2a8a7e6d',
        }
      ],
      meta: {
        totalItems: 1
        itemCount: 1
        itemsPerPage: 15
        totalPages: 1
        currentPage: 1
      }
    }
    ```
  </Tab>
</Tabs>

### Parâmetros

Lista de todos os parâmetros suportados pelo método.

<ParamField path="page" type="number">
  Número da página que deverá ser listada
</ParamField>

<ParamField path="limit" type="number">
  Limite de itens por página
</ParamField>

<ParamField path="sort" type="string">
  Ordenação da listagem, padrão é <code>ASC</code>

  <br />

  <br />

  Os valores suportados são: <code>ASC</code> ou <code>DESC</code>
</ParamField>

<ParamField path="startDate" type="string">
  Data inicial do período filtrado
</ParamField>

<ParamField path="endDate" type="string">
  Data final do período filtrado
</ParamField>

<ParamField path="isActive" type="array">
  Sessões ativadas ou desativadas
</ParamField>

<ParamField path="status" type="array">
  Status atual da sessão
</ParamField>
