# Read Planning

`GET /planning` · Planning · server http://localhost:3000/api/v1

Send an API key with every call: `Authorization: Bearer tiko_…`. See https://docs.tiko.run/api-keys/.

The operation from the OpenAPI schema, with its schemas inlined:

```json
{
  "description": "Stage types, people with their time off, fields and days off. A key for chosen boards\nreads only what those boards' gantts use.",
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "properties": {
              "enabled": {
                "type": "boolean",
                "title": "Enabled"
              },
              "types": {
                "items": {
                  "properties": {
                    "id": {
                      "type": "string",
                      "title": "Id"
                    },
                    "name": {
                      "type": "string",
                      "title": "Name"
                    },
                    "archived": {
                      "type": "boolean",
                      "title": "Archived"
                    }
                  },
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "archived"
                  ],
                  "title": "TypeOut"
                },
                "type": "array",
                "title": "Types",
                "default": []
              },
              "people": {
                "items": {
                  "properties": {
                    "id": {
                      "type": "string",
                      "title": "Id"
                    },
                    "name": {
                      "type": "string",
                      "title": "Name"
                    },
                    "teams": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array",
                      "title": "Teams"
                    },
                    "archived": {
                      "type": "boolean",
                      "title": "Archived"
                    },
                    "off": {
                      "items": {
                        "properties": {
                          "start": {
                            "type": "string",
                            "format": "date",
                            "title": "Start"
                          },
                          "end": {
                            "type": "string",
                            "format": "date",
                            "title": "End"
                          }
                        },
                        "type": "object",
                        "required": [
                          "start",
                          "end"
                        ],
                        "title": "Away"
                      },
                      "type": "array",
                      "title": "Off"
                    }
                  },
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "teams",
                    "archived",
                    "off"
                  ],
                  "title": "PersonOut"
                },
                "type": "array",
                "title": "People",
                "default": []
              },
              "fields": {
                "items": {
                  "properties": {
                    "id": {
                      "type": "string",
                      "title": "Id"
                    },
                    "name": {
                      "type": "string",
                      "title": "Name"
                    },
                    "archived": {
                      "type": "boolean",
                      "title": "Archived"
                    }
                  },
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "archived"
                  ],
                  "title": "FieldOut"
                },
                "type": "array",
                "title": "Fields",
                "default": []
              },
              "days_off": {
                "items": {
                  "type": "string",
                  "format": "date"
                },
                "type": "array",
                "title": "Days Off",
                "default": []
              }
            },
            "type": "object",
            "required": [
              "enabled"
            ],
            "title": "PlanningOut"
          }
        }
      }
    },
    "401": {
      "description": "No key, or a key that stopped working",
      "content": {
        "application/json": {
          "schema": {
            "properties": {
              "error": {
                "properties": {
                  "code": {
                    "type": "string",
                    "title": "Code"
                  },
                  "message": {
                    "type": "string",
                    "title": "Message"
                  }
                },
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "title": "ErrorDetail"
              }
            },
            "type": "object",
            "required": [
              "error"
            ],
            "title": "Error",
            "description": "Every error of v1; clients must ignore codes they do not know."
          }
        }
      }
    },
    "403": {
      "description": "The key may not do this, or keys are switched off",
      "content": {
        "application/json": {
          "schema": {
            "properties": {
              "error": {
                "properties": {
                  "code": {
                    "type": "string",
                    "title": "Code"
                  },
                  "message": {
                    "type": "string",
                    "title": "Message"
                  }
                },
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "title": "ErrorDetail"
              }
            },
            "type": "object",
            "required": [
              "error"
            ],
            "title": "Error",
            "description": "Every error of v1; clients must ignore codes they do not know."
          }
        }
      }
    },
    "404": {
      "description": "Not found, or not among what the key reaches",
      "content": {
        "application/json": {
          "schema": {
            "properties": {
              "error": {
                "properties": {
                  "code": {
                    "type": "string",
                    "title": "Code"
                  },
                  "message": {
                    "type": "string",
                    "title": "Message"
                  }
                },
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "title": "ErrorDetail"
              }
            },
            "type": "object",
            "required": [
              "error"
            ],
            "title": "Error",
            "description": "Every error of v1; clients must ignore codes they do not know."
          }
        }
      }
    },
    "429": {
      "description": "Over a budget; see Retry-After",
      "content": {
        "application/json": {
          "schema": {
            "properties": {
              "error": {
                "properties": {
                  "code": {
                    "type": "string",
                    "title": "Code"
                  },
                  "message": {
                    "type": "string",
                    "title": "Message"
                  }
                },
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "title": "ErrorDetail"
              }
            },
            "type": "object",
            "required": [
              "error"
            ],
            "title": "Error",
            "description": "Every error of v1; clients must ignore codes they do not know."
          }
        }
      }
    }
  },
  "security": [
    {
      "API key": []
    }
  ]
}
```
