---
title: "List SMTP credentials"
method: GET
path: "/smtp-credentials"
tags: ["SmtpCredentials"]
---

# List SMTP credentials

`GET /smtp-credentials`

## Request

- Base URL: `https://api.groundmail.dev`
- URL: `https://api.groundmail.dev/smtp-credentials`
- Auth: HTTP bearer

## Query parameters

- `limit` integer
- `cursor` string

## Response `200`

SMTP credential list

- ListSmtpCredentialsResponse
  - `data` SmtpCredential[], required
    - `id` string, required
    - `name` string, required
    - `password_prefix` string, required: First characters of the SMTP password for identification
    - `username` string, required: Always `groundmail`
    - `host` string, required
    - `port` integer, required
    - `last_used_at` string, date-time, nullable, required
    - `revoked_at` string, date-time, nullable, required
    - `created_at` string, date-time, required
  - `has_more` boolean, required
  - `next_cursor` string, nullable, required

## Other responses

- `401`: Missing or invalid API key

---

[API](https://skmtc.dev/groundmail/apis/groundmail-api.md) · [All operations](https://skmtc.dev/groundmail/apis/groundmail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/groundmail/apis/groundmail-api/revisions/479821c9fecf?raw)
