{
  "service": "kintone",
  "displayName": "Kintone",
  "categories": [
    "Productivity"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "User API Token",
      "placeholder": "cy.s.api1...",
      "description": "Kintone User API token sent with the Authorization: Bearer header. Generate it in Kintone System Administration settings: https://kintone.dev/en/docs/common/user-api/overview/user-api-overview/#api-token-authentication.",
      "extraFields": [
        {
          "key": "subdomain",
          "label": "Subdomain",
          "inputType": "text",
          "required": true,
          "secret": false,
          "placeholder": "example",
          "description": "Your Kintone subdomain from https://{subdomain}.kintone.com. Enter only the subdomain value, such as example."
        }
      ]
    }
  ],
  "homepageUrl": "https://www.kintone.com/",
  "actions": [
    {
      "id": "kintone.get_user_departments",
      "service": "kintone",
      "name": "get_user_departments",
      "description": "Get the departments assigned to a Kintone user by user code.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "minLength": 1,
            "description": "A Kintone code value."
          }
        },
        "additionalProperties": false,
        "required": [
          "code"
        ],
        "description": "The input payload for querying a Kintone user's directory links."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "organizationTitles": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "organization": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "The Kintone department ID."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "code": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "The Kintone department code."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "The Kintone department name."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "The Kintone department description."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "raw": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": true,
                      "description": "The raw object returned by Kintone."
                    }
                  },
                  "additionalProperties": false,
                  "description": "A normalized Kintone department."
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "The Kintone title ID."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "The Kintone title code."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "The Kintone title name."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "The Kintone title description."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "raw": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": true,
                          "description": "The raw object returned by Kintone."
                        }
                      },
                      "additionalProperties": false,
                      "description": "A normalized Kintone title."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Kintone."
                }
              },
              "additionalProperties": false,
              "description": "A Kintone user's department and title assignment."
            },
            "description": "The department and title assignments returned by Kintone."
          }
        },
        "additionalProperties": false,
        "required": [
          "organizationTitles"
        ],
        "description": "The response returned when getting a Kintone user's departments."
      }
    },
    {
      "id": "kintone.get_user_groups",
      "service": "kintone",
      "name": "get_user_groups",
      "description": "Get the groups assigned to a Kintone user by user code.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "minLength": 1,
            "description": "A Kintone code value."
          }
        },
        "additionalProperties": false,
        "required": [
          "code"
        ],
        "description": "The input payload for querying a Kintone user's directory links."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "groups": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Kintone group ID."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "code": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Kintone group code."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Kintone group name."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Kintone group description when returned."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Kintone."
                }
              },
              "additionalProperties": false,
              "description": "A normalized Kintone group."
            },
            "description": "The groups assigned to the Kintone user."
          }
        },
        "additionalProperties": false,
        "required": [
          "groups"
        ],
        "description": "The response returned when getting a Kintone user's groups."
      }
    },
    {
      "id": "kintone.get_user_services",
      "service": "kintone",
      "name": "get_user_services",
      "description": "Get services assigned to Kintone users with optional user code filters.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "codes": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "description": "A list of Kintone code values. Up to 100 codes can be specified.",
            "minItems": 1,
            "maxItems": 100
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "description": "The result offset. Kintone defaults this to 0."
          },
          "size": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The maximum number of records to return. Kintone defaults this to 100."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for querying Kintone user service assignments."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "users": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Kintone user code."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "services": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  },
                  "description": "The service codes assigned to the Kintone user."
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Kintone."
                }
              },
              "additionalProperties": false,
              "description": "A normalized Kintone user's service assignments."
            },
            "description": "The Kintone users and their assigned services."
          }
        },
        "additionalProperties": false,
        "required": [
          "users"
        ],
        "description": "The response returned when getting Kintone user service assignments."
      }
    },
    {
      "id": "kintone.list_departments",
      "service": "kintone",
      "name": "list_departments",
      "description": "List Kintone departments with optional ID, code, and pagination filters.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "A Kintone numeric ID."
            },
            "description": "A list of Kintone numeric IDs. Up to 100 IDs can be specified.",
            "minItems": 1,
            "maxItems": 100
          },
          "codes": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "description": "A list of Kintone code values. Up to 100 codes can be specified.",
            "minItems": 1,
            "maxItems": 100
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "description": "The result offset. Kintone defaults this to 0."
          },
          "size": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The maximum number of records to return. Kintone defaults this to 100."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for listing Kintone directory records."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "departments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Kintone department ID."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "code": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Kintone department code."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Kintone department name."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Kintone department description."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Kintone."
                }
              },
              "additionalProperties": false,
              "description": "A normalized Kintone department."
            },
            "description": "The departments returned by Kintone."
          }
        },
        "additionalProperties": false,
        "required": [
          "departments"
        ],
        "description": "The response returned when listing Kintone departments."
      }
    },
    {
      "id": "kintone.list_groups",
      "service": "kintone",
      "name": "list_groups",
      "description": "List Kintone groups with optional ID, code, and pagination filters.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "A Kintone numeric ID."
            },
            "description": "A list of Kintone numeric IDs. Up to 100 IDs can be specified.",
            "minItems": 1,
            "maxItems": 100
          },
          "codes": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "description": "A list of Kintone code values. Up to 100 codes can be specified.",
            "minItems": 1,
            "maxItems": 100
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "description": "The result offset. Kintone defaults this to 0."
          },
          "size": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The maximum number of records to return. Kintone defaults this to 100."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for listing Kintone directory records."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "groups": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Kintone group ID."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "code": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Kintone group code."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Kintone group name."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Kintone group description when returned."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Kintone."
                }
              },
              "additionalProperties": false,
              "description": "A normalized Kintone group."
            },
            "description": "The groups returned by Kintone."
          }
        },
        "additionalProperties": false,
        "required": [
          "groups"
        ],
        "description": "The response returned when listing Kintone groups."
      }
    },
    {
      "id": "kintone.list_users",
      "service": "kintone",
      "name": "list_users",
      "description": "List Kintone users with optional ID, code, and pagination filters.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "description": "A Kintone numeric ID."
            },
            "description": "A list of Kintone numeric IDs. Up to 100 IDs can be specified.",
            "minItems": 1,
            "maxItems": 100
          },
          "codes": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "description": "A list of Kintone code values. Up to 100 codes can be specified.",
            "minItems": 1,
            "maxItems": 100
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "description": "The result offset. Kintone defaults this to 0."
          },
          "size": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The maximum number of records to return. Kintone defaults this to 100."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for listing Kintone directory records."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "users": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Kintone user ID."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "code": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Kintone user code."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Kintone user display name."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "email": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Kintone user email address."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "valid": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the Kintone user status is active."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Kintone."
                }
              },
              "additionalProperties": false,
              "description": "A normalized Kintone user."
            },
            "description": "The users returned by Kintone."
          }
        },
        "additionalProperties": false,
        "required": [
          "users"
        ],
        "description": "The response returned when listing Kintone users."
      }
    }
  ]
}
