---
updatedAt: 2026-08-01T11:27:33.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# Get Day Part

## Why Get Day Part?

When you would like to return day parting information associated with a flight, the Get Day Part API endpoint enables you to retrieve this information in a `GET` call. When the API call is made, the day parting entity associated with the flight you specified will be returned.

## API Syntax

When using the Get Day Part API endpoint, it is important to understand the syntax required to make the request. Because the Kevel API is a RESTful API, there is a specific request format that must be followed to ensure the endpoint can process the request. The format is:

`GET https://api.kevel.co/v1/flight/{FlightID}/dayparting/{TimepartID}`

Where:

* `GET` - the type of API request being made.
* `https://api.kevel.co` - the URL for the request.
* `v1` - the API version.
* `flight` - the API endpoint being called.
* `FlightID` - the ID associated with the flight.
* `dayparting` - the specific day part object being used for the flight.
* `TimepartID` - the ID of the specific time part used for the day part.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "kevel-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.kevel.co"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/v1/flight/{FlightID}/dayparting/{TimepartID}": {
      "get": {
        "summary": "Get Day Part",
        "description": "",
        "operationId": "get-day-part",
        "parameters": [
          {
            "name": "FlightID",
            "in": "path",
            "description": "The ID of the flight",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "TimepartID",
            "in": "path",
            "description": "The ID of the day parting entity",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"Id\": 67890,\n  \"StartTime\": \"09:30:00\",\n  \"EndTime\": \"17:00:00\",\n  \"FlightId\": 12345,\n  \"WeekDays\": [\n    \"MO\", \"TU\"\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "Id": {
                      "type": "integer",
                      "example": 67890,
                      "default": 0
                    },
                    "StartTime": {
                      "type": "string",
                      "example": "09:30:00"
                    },
                    "EndTime": {
                      "type": "string",
                      "example": "17:00:00"
                    },
                    "FlightId": {
                      "type": "integer",
                      "example": 12345,
                      "default": 0
                    },
                    "WeekDays": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "MO"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"message\": \"Timepart not found for specified Flight and Timepart Id.\",\n  \"action\": \"GetTimepart\",\n  \"values\": {\n    \"FlightId\": 1234567,\n    \"Id\": 1234\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Timepart not found for specified Flight and Timepart Id."
                    },
                    "action": {
                      "type": "string",
                      "example": "GetTimepart"
                    },
                    "values": {
                      "type": "object",
                      "properties": {
                        "FlightId": {
                          "type": "integer",
                          "example": 1234567,
                          "default": 0
                        },
                        "Id": {
                          "type": "integer",
                          "example": 1234,
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -g -H \"X-Adzerk-ApiKey:$ADZERK_API_KEY\" \"https://api.kevel.co/v1/flight/1234567/dayparting/12345\""
            },
            {
              "language": "javascript",
              "code": "const Adzerk = require('@adzerk/management-sdk');\nconst apiKey = process.env.ADZERK_API_KEY;\n\nasync function getDayPart() {\n  let specifications = await Adzerk.fetchSpecifications();\n  let client = await Adzerk.buildClient({apiKey, specifications});\n\n  let dayPart = await client.run('dayPart', 'get', {\n    flightId: 12345,\n    id: 67890,\n  });\n  console.log(dayPart);\n}\n\ngetDayPart();"
            },
            {
              "language": "ruby",
              "code": "require \"adzerk\"\n\ndef get_day_part()\n    client = Adzerk::Client.new(ENV[\"ADZERK_API_KEY\"])\n    flight_id = 12345\n    timepart_id = 67890\n    pp client.day_parts.get(flight_id, timepart_id)\nend\nget_day_part()"
            }
          ],
          "samples-languages": [
            "curl",
            "javascript",
            "ruby"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```