Skip to content
On this page

List Namespaces

GET /api/namespaces

This endpoint returns all owned namespaces.

Example

Request

curl --request GET \
     --url https://api.mailisk.com/api/namespaces \
     --header 'Accept: application/json' \
     --header 'X-Api-Key: {Api Key}'

Response

{
  "options": {
    "total_count": 1
  },
  "data": [
    {
      "id": "67f3dcb7-a707-422b-a907-5da53f026fe3",
      "namespace": "test"
    }
  ]
}

Request

None.

Response

Typescript type

interface Namespace {
  /** Unique UUID for namespace */
  id: string;
  /** Name */
  name: string;
}