# Get organization by id

`GET /organization`



[Auth Administration API guide](https://docs.contextual.io/legacy/tenants/tenant-apis/auth-administration-api.md)

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Contextual Auth API",
    "description": " "
  },
  "security": [
    {
      "jwt": []
    }
  ],
  "servers": [
    {
      "url": "https://auth.{tenantId}.my.contextual.io/api/v1",
      "variables": {
        "tenantId": {
          "default": "YOUR-TENANT-ID"
        }
      }
    }
  ],
  "paths": {
    "/organization": {
      "get": {
        "tags": [
          "Organizations"
        ],
        "summary": "Get organization by id",
        "parameters": [
          {
            "name": "x-org-id",
            "in": "header",
            "required": false
          }
        ],
        "deprecated": false,
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organization"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authorization header",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/$ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Invalid permissions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/$ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Organization not found",
            "content": {}
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "jwt": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "Organization": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "description": {
            "type": "string"
          },
          "baseDomain": {
            "type": "string"
          },
          "features": {
            "type": "object",
            "properties": {
              "mfa": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          },
          "featureLimits": {
            "type": "object",
            "properties": {
              "maxUsers": {
                "default": -1,
                "type": "integer",
                "minimum": -1,
                "maximum": 9007199254740991
              },
              "maxObjectTypes": {
                "default": -1,
                "type": "integer",
                "minimum": -1,
                "maximum": 9007199254740991
              },
              "maxRecords": {
                "default": -1,
                "type": "integer",
                "minimum": -1,
                "maximum": 9007199254740991
              },
              "maxTopics": {
                "default": -1,
                "type": "integer",
                "minimum": -1,
                "maximum": 9007199254740991
              },
              "maxPartitions": {
                "default": -1,
                "type": "integer",
                "minimum": -1,
                "maximum": 9007199254740991
              },
              "maxAgents": {
                "default": -1,
                "type": "integer",
                "minimum": -1,
                "maximum": 9007199254740991
              },
              "maxAgentPods": {
                "default": -1,
                "type": "integer",
                "minimum": -1,
                "maximum": 9007199254740991
              },
              "maxInstancesPerAgent": {
                "default": -1,
                "type": "integer",
                "minimum": -1,
                "maximum": 9007199254740991
              },
              "maxEvents": {
                "default": -1,
                "type": "integer",
                "minimum": -1,
                "maximum": 9007199254740991
              },
              "maxCustomDomainedAgents": {
                "default": -1,
                "type": "integer",
                "minimum": -1,
                "maximum": 9007199254740991
              },
              "maxAiSearchEventHandlerPartitions": {
                "default": 1,
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "maxAiSearchEventHandlerReplicas": {
                "default": 1,
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "maxAiSearchEmbeddingEventHandlerPartitions": {
                "default": 1,
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "maxAiSearchEmbeddingEventHandlerReplicas": {
                "default": 1,
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "maxLogPartitions": {
                "default": 1,
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "maxLogReplicas": {
                "default": 1,
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "maxLogRetentionDays": {
                "default": 1,
                "anyOf": [
                  {
                    "type": "number",
                    "const": 1
                  },
                  {
                    "type": "number",
                    "const": 7
                  },
                  {
                    "type": "number",
                    "const": 30
                  }
                ]
              },
              "maxTriggerPartitions": {
                "default": 1,
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "maxTriggerReplicas": {
                "default": 1,
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "maxUsers",
              "maxObjectTypes",
              "maxRecords",
              "maxTopics",
              "maxPartitions",
              "maxAgents",
              "maxAgentPods",
              "maxInstancesPerAgent",
              "maxEvents",
              "maxCustomDomainedAgents",
              "maxAiSearchEventHandlerPartitions",
              "maxAiSearchEventHandlerReplicas",
              "maxAiSearchEmbeddingEventHandlerPartitions",
              "maxAiSearchEmbeddingEventHandlerReplicas",
              "maxLogPartitions",
              "maxLogReplicas",
              "maxLogRetentionDays",
              "maxTriggerPartitions",
              "maxTriggerReplicas"
            ],
            "additionalProperties": false
          },
          "bssConnection": {
            "type": "object",
            "properties": {
              "auth": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "clientId": {
                    "type": "string"
                  },
                  "clientSecret": {
                    "type": "string"
                  },
                  "audience": {
                    "type": "string"
                  }
                },
                "required": [
                  "url",
                  "clientId",
                  "clientSecret",
                  "audience"
                ],
                "additionalProperties": false
              },
              "eventReportingUrl": {
                "type": "string",
                "format": "uri"
              },
              "adminApiUrl": {
                "type": "string",
                "format": "uri"
              }
            },
            "required": [
              "auth",
              "eventReportingUrl",
              "adminApiUrl"
            ],
            "additionalProperties": false
          },
          "suspensions": {
            "type": "object",
            "properties": {
              "agents": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          },
          "enforceMfaOn": {
            "type": "string",
            "pattern": "^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$",
            "description": "An ISO 8601 date time string",
            "format": "date-time"
          },
          "_metaData": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "createdAt": {
                "type": "string",
                "pattern": "^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$",
                "description": "An ISO 8601 date time string",
                "format": "date-time"
              },
              "updatedAt": {
                "type": "string",
                "pattern": "^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$",
                "description": "An ISO 8601 date time string",
                "format": "date-time"
              }
            },
            "required": [
              "id",
              "createdAt"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "name",
          "_metaData"
        ],
        "additionalProperties": false
      },
      "$ErrorResponse": {
        "type": "object",
        "properties": {
          "code": {
            "type": [
              "string",
              "number"
            ]
          },
          "message": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {}
          }
        },
        "required": [
          "code",
          "message"
        ],
        "additionalProperties": false
      }
    }
  }
}
```