{
  "success": {
    "v": 2,
    "license": "CC-BY 4.0",
    "description": "Returns all time interval definitions",
    "options": {
      "parameters": {
        "int_id": "integer, one or more comma-separated interval IDs",
        "all": "return all interval definitions",
        "t_age": "number, a late age in Ma",
        "b_age": "number, an early age in Ma",
        "interval_name": "string, interval name",
        "true_colors": "boolean, returns original international time scale colors",
        "rule": "used with t_age and b_age to determine how intersecting intervals are identified: 'contains' returns intervals that fall entirely within t_age and b_age, 'exact' returns intervals with boundaries equal to t_age,b_age. Default is 'loose', returns any interval touching the range of t_age and b_age",
        "age": "integer, an age in Ma - will find all intervals that overlap with this age",
        "timescale": "string, a valid timescale name as defined in /api/v2/defs/timescales",
        "timescale_id": "integer, a valid timescale_id as defined in /api/v2/defs/timescales",
        "format": "Desired output format"
      },
      "output_formats": [
        "json",
        "csv"
      ],
      "examples": [
        "api/v2/defs/intervals?all",
        "api/v2/defs/intervals?id=366",
        "api/v2/defs/intervals?timescale=new%20zealand%20ages",
        "api/v2/defs/intervals?late_age=0&early_age=130",
        "api/v2/defs/intervals?timescale_id=1&age=100"
      ],
      "fields": {
        "int_id": "integer, the unique interval ID",
        "name": "text, the name of the entity",
        "abbrev": "standard abbreviation for interval name",
        "t_age": "number, continuous time age model estimated for truncation, in Myr before present",
        "b_age": "number, continuous time age model estimated for initiation, in Myr before present",
        "int_type": "text, the temporal rank of the interval",
        "color": "text, recommended coloring for units based on dominant lithology",
        "timescales": ""
      }
    }
  }
}