Accounting Finance GPT by JustPaid
Accounting Finance GPT by JustPaid · GPT-Aktionen
JustPaid Actions for GPT (Dynamic)
Equip GPTs with the ability to run actions via JustPaid.
GET /available-actionsList Available ActionsList all the currently available actions for the user. If you try to run an action and receive an error that it does not exist, try refreshing this list first.
POST /available-actions/{action_id}/runRun ActionRun an available action using associated payload from list_available_actions in the body of the request.
Ursprüngliches API-Schema
{
"openapi": "3.1.0",
"info": {
"title": "JustPaid Actions for GPT (Dynamic)",
"version": "1.0.0",
"description": "Equip GPTs with the ability to run actions via JustPaid."
},
"servers": [
{
"url": "https://api.justpaid.io/api/chat/gpt"
}
],
"paths": {
"/available-actions": {
"get": {
"operationId": "list_available_actions",
"summary": "List Available Actions",
"parameters": [
{
"in": "query",
"name": "apps",
"schema": {
"title": "Apps",
"description": "Filter actions to a comma separated list of integration app names.",
"type": "string"
},
"required": true,
"description": "Filter actions to a comma separated list of integration app names. Currently available apps are: stripe and accounting"
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AvailableActionResponseSchema"
}
}
}
}
},
"description": "List all the currently available actions for the user. If you try to run an action and receive an error\n that it does not exist, try refreshing this list first.",
"security": [
{
"oauth2": []
}
]
}
},
"/available-actions/{action_id}/run": {
"post": {
"operationId": "run_action",
"summary": "Run Action",
"description": "Run an available action using associated payload from list_available_actions in the body of the request.",
"parameters": [
{
"in": "path",
"name": "action_id",
"schema": {
"title": "Available Action Id",
"type": "string",
"pattern": "^[a-z]{4}[0-9]{3}$",
"example": "01ARZ3NDEKTSV4RRFFQ6"
},
"required": true,
"example": "01ARZ3NDEKTSV4RRFFQ6"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"payload": {
"description": "An array whose items are the params (payload) required for the action to run. See AvailableActionSchema for more details.",
"type": "array",
"items": {
"type": "object",
"description": "Each of the params (payload) required for the actions to run formatted as key, value objects.",
"properties": {
"key": {
"description": "The param key (or name).",
"type": "string"
},
"value": {
"description": "The param value.",
"type": "string"
}
}
}
}
},
"required": [
"payload"
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RunResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
},
"security": [
{
"oauth2": []
}
]
}
}
},
"components": {
"schemas": {
"AvailableActionSchema": {
"title": "AvailableActionSchema",
"type": "object",
"properties": {
"id": {
"title": "Id",
"description": "The unique ID of the available action.",
"type": "string"
},
"name": {
"title": "Name",
"description": "The name of the action.",
"type": "string"
},
"description": {
"title": "Description",
"description": "Description of the action.",
"type": "string"
},
"payload": {
"title": "payload",
"description": "Available fields required for the action to work.",
"type": "object"
}
},
"required": [
"id",
"operation_id",
"description",
"payload"
]
},
"AvailableActionResponseSchema": {
"title": "AvailableActionResponseSchema",
"type": "object",
"properties": {
"data": {
"title": "Data",
"type": "array",
"items": {
"$ref": "#/components/schemas/AvailableActionSchema"
}
},
"configuration_link": {
"title": "Configuration Link",
"description": "Guide the user to setup JustPaid integrations with the configuration_link.",
"type": "string"
}
},
"required": [
"data",
"configuration_link"
]
},
"RunResponse": {
"title": "RunResponse",
"description": "This is a summary of the results given the action that was run.",
"type": "object",
"properties": {
"id": {
"title": "Id",
"description": "The id of the run log.",
"type": "string"
},
"action_used": {
"title": "Action Used",
"description": "The name of the action that was run.",
"type": "string"
},
"input_payload": {
"title": "Input payload",
"description": "The payload we used / will use to run the action.",
"type": "object"
},
"review_url": {
"title": "Review Url",
"description": "The URL to run the action or review the AI choices the AI made for input_payload given instructions.",
"type": "string"
},
"result": {
"title": "Result",
"description": "A trimmed down result of the first item of the full results. Ideal for humans and language models!",
"type": "object"
},
"additional_results": {
"title": "Additional Results",
"description": "The rest of the full results. Always returns an array of objects",
"type": "array",
"items": {
"type": "object"
}
},
"result_field_labels": {
"title": "Result Field Labels",
"description": "Human readable labels for some of the keys in the result.",
"type": "object"
},
"status": {
"title": "Status",
"description": "The status of the action run.",
"default": "success",
"enum": [
"success",
"error",
"empty",
"preview"
],
"type": "string"
},
"error": {
"title": "Error",
"description": "The error message if the action run failed.",
"type": "string"
},
"assistant_hint": {
"title": "Assistant Hint",
"description": "A hint for the assistant on what to do next.",
"type": "string"
},
"full_results": {
"title": "Full Results",
"description": "The full results, not summarized, if available. Always returns an array of objects.",
"type": "array",
"items": {
"type": "object"
}
}
},
"required": [
"id",
"action_used",
"input_payload",
"review_url",
"additional_results",
"full_results"
]
},
"ErrorResponse": {
"title": "ErrorResponse",
"type": "object",
"properties": {
"error": {
"title": "Error",
"description": "Error message.",
"type": "string"
}
},
"required": [
"error"
]
}
},
"securitySchemes": {
"oauth2": {
"type": "oauth2"
}
}
}
}