@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Zapier AI Actions API
@base https://actions.zapier.com
@version main_api_v1
@auth ApiKey x-api-key in header | ApiKey api_key in query | OAuth2 | ApiKey nlasession in cookie
@endpoints 5
@toc api(5)

@endpoint GET /api/v1/check/
@desc Check
@returns(200) OK

@endpoint GET /api/v1/configuration-link/
@desc Get Configuration Link
@returns(200) OK

@endpoint GET /api/v1/exposed/
@desc List Exposed Actions
@returns(200) {results: [map], configuration_link: str} # OK

@endpoint POST /api/v1/exposed/{exposed_app_action_id}/execute/
@desc Execute App Action Endpoint
@required {exposed_app_action_id: str(uuid), instructions: str # Plain english instructions. Provide as much detail as possible, even if other fields are present.}
@optional {preview_only: bool=False # If true, we will not execute the action, but will return the params of the preview.}
@returns(200) {id: str, action_used: str, input_params: map, review_url: str, result: any, additional_results: [map], result_field_labels: any, status: str, error: any, assistant_hint: any} # OK
@errors {400: Bad Request}

@endpoint GET /api/v1/execution-log/{execution_log_id}/
@desc Get Execution Log Endpoint
@required {execution_log_id: str(uuid)}
@returns(200) {id: str, action_used: str, input_params: map, review_url: str, result: any, additional_results: [map], result_field_labels: any, status: str, error: any, assistant_hint: any} # OK
@errors {400: Bad Request}

@end
