Export the time spents to CSV

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://api-docs.kitsu.cloud/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Kitsu API MCP server": {
    "url": "https://api-docs.kitsu.cloud/mcp"
  }
}

Close
GET /export/csv/time-spents.csv

Get a CSV file with the time spents of the open projects. Each row gives the project, person, entity, task type, date and duration. You must be a manager.

Responses

  • 200 text/csv

    The CSV file

  • 403

    You are not a manager

GET /export/csv/time-spents.csv
curl -X GET "http://api.example.com/export/csv/time-spents.csv" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
import requests

url = "http://api.example.com/export/csv/time-spents.csv"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json"
}
params = {}
payload = None

response = requests.get(
    url,
    headers=headers,
    params=params,
    json=payload
)

response.raise_for_status()

if response.content:
    print(response.json())
Response examples (200)
Project,Person,Entity Type Name,Entity,Task Type,Date,Time spent Project A,John Doe,Shot,SH010,Animation,2024-01-15,480