get an organization.md

Get an organization

Management API · Organization

GET https://app.mk.io/api/v1/organization

Returns your active organization.

RBAC Capability Required: core.customer.get

Authentication

Example request

curl -X GET "https://app.mk.io/api/v1/organization" \
  -H "Authorization: Bearer <token>"

Responses

200 — OK

Example:

{
  "kind": "string",
  "metadata": {
    "created": "2024-01-01T00:00:00Z",
    "createdBy": "00000000-0000-0000-0000-000000000000",
    "createdByEmail": "string",
    "createdById": "00000000-0000-0000-0000-000000000000",
    "createdByName": "string",
    "id": "00000000-0000-0000-0000-000000000000",
    "isActive": true,
    "name": "string",
    "updated": "2024-01-01T00:00:00Z"
  },
  "spec": {
    "legalEntityAddress": "string",
    "legalEntityContactEmail": "string",
    "legalEntityName": "string",
    "legalEntityOfficer": "string",
    "name": "string"
  }
}

400 — Bad Request

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

401 — Unauthorized

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

403 — Forbidden

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

404 — Not Found

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

429 — Too Many Requests

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

500 — Internal Server Error

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}