---
agentTools:
  projectIndex: https://tyms.readme.io/llms.txt
---

# Get Departments

All business departments can be gotten here using these endpoints.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Tyms (Sandbox)",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://staging-api.tyms.io/api/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "secret-key",
        "in": "header",
        "x-default": "sk_2938310299229"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/departments": {
      "get": {
        "summary": "Get Departments",
        "description": "All business departments can be gotten here using these endpoints.",
        "operationId": "get-branches-copy",
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {},
              "examples": {
                "Request Example": {
                  "value": {
                    "status": "success",
                    "message": "Business departments retrieved successfully",
                    "data": {
                      "current_page": 1,
                      "data": [
                        {
                          "uuid": "f3aecf334cd2451b81f6e53dee52f44e",
                          "name": "Engineering"
                        },
                        {
                          "uuid": "d68e40792df440c6975f01834eb71b00",
                          "name": "Procurement"
                        },
                        {
                          "uuid": "0019701a23e74dcf93e36925d621baa6",
                          "name": "Finance"
                        }
                      ],
                      "first_page_url": "http://127.0.0.1:8000/api/v1/departments?page=1",
                      "from": 1,
                      "last_page": 1,
                      "last_page_url": "http://127.0.0.1:8000/api/v1/departments?page=1",
                      "links": [
                        {
                          "url": null,
                          "label": "&laquo; Previous",
                          "active": false
                        },
                        {
                          "url": "http://127.0.0.1:8000/api/v1/departments?page=1",
                          "label": "1",
                          "active": true
                        },
                        {
                          "url": null,
                          "label": "Next &raquo;",
                          "active": false
                        }
                      ],
                      "next_page_url": null,
                      "path": "http://127.0.0.1:8000/api/v1/departments",
                      "per_page": 20,
                      "prev_page_url": null,
                      "to": 3,
                      "total": 3
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "66af161f6f18be002a6dc48f:650c65d6a4463415ad83ed8a"
}
```