> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/stackai-api/rest-api-v2/providers-and-actions/get-v2-providers-provider_id-actions-action_id.md).

# GET /v2/providers/{provider\_id}/actions/{action\_id}

## Get Provider Action

> Get a provider action, including its input and output parameters.\
> \
> \*\*How to use\*\*\
> \
> Use the action-specific input and output parameter definitions to build inputs. Required fields, connection needs, and runtime behavior differ by action; there is no universal action payload.\
> \
> \*\*Authentication and permissions\*\*\
> \
> Required permissions: \`connections.read\`. Resource and owner access checks also apply.

```json
{"openapi":"3.1.0","info":{"title":"StackAI API","version":"0.1.0"},"tags":[{"name":"endpoint-getProviderActionV2"}],"servers":[{"url":"https://api.stack-ai.com","description":"Hosted API. Use your deployment-specific origin for private installations."}],"security":[{"HTTPBearer":[]}],"components":{"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer","description":"Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header."}},"schemas":{"StackAIAPIDataResponse_ProviderActionResponseV2_":{"properties":{"response_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Code","description":"Machine-readable response code, when provided."},"meta":{"additionalProperties":true,"type":"object","title":"Meta","description":"Additional metadata","default":{}},"data":{"$ref":"#/components/schemas/ProviderActionResponseV2","description":"Data returned by the API service"}},"type":"object","required":["data"],"title":"StackAIAPIDataResponse[ProviderActionResponseV2]"},"ProviderActionResponseV2":{"properties":{"action_id":{"type":"string","title":"Action Id"},"provider_id":{"type":"string","title":"Provider Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"deprecated":{"type":"boolean","title":"Deprecated","default":false},"deprecation_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deprecation Message"},"input_parameters":{"items":{"$ref":"#/components/schemas/ProviderActionInputParameterV2"},"type":"array","title":"Input Parameters"},"output_parameters":{"items":{"$ref":"#/components/schemas/ProviderActionOutputParameterV2"},"type":"array","title":"Output Parameters"}},"type":"object","required":["action_id","provider_id","name","description"],"title":"ProviderActionResponse","description":"A provider action on the public v2 catalog, with its input and output parameters.\n\nServes the action-detail endpoint only. The parameters come from the provider cache — the\nsame snapshot as the rest of the catalog — not from a live registry crawl: the cache already\ncarries each action's flattened parameter metadata, so detail is a pure cache read. Output\nparameters are one level deep (nested object shapes surface as `type: \"object\"` without\ntheir sub-fields), which the cached representation does not expand."},"ProviderActionInputParameterV2":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/ProviderActionParameterTypeV2"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"required":{"type":"boolean","title":"Required","default":false},"default":{"title":"Default"},"options":{"items":{"$ref":"#/components/schemas/ProviderActionParameterOptionV2"},"type":"array","title":"Options"},"has_dynamic_options":{"type":"boolean","title":"Has Dynamic Options","default":false},"depends_on":{"items":{"type":"string"},"type":"array","title":"Depends On"},"minimum":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"null"}],"title":"Minimum"},"maximum":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"null"}],"title":"Maximum"}},"type":"object","required":["name","type","label","description"],"title":"ProviderActionInputParameter","description":"One input parameter of an action; `name` is the key used in the run `inputs` map."},"ProviderActionParameterTypeV2":{"type":"string","enum":["string","number","integer","float","boolean","select","secret","secret_multiline","file","binary_file","files","knowledge_base","browser_navigation_replay","browser_navigation_session","connection","textline","textarea","multiple_select","string_array","number_array","date","time","datetime","percentage_slider","object","array","object_array","dict","dict_array","code","expression","file_picker","unknown"],"title":"ProviderActionParameterTypeV2","description":"The public parameter type.\n\nA StackAI-owned copy of the platform's parameter types, kept deliberately decoupled from the\ninternal engine enum (`stackflow`'s `ToolParameterType`) so the public contract does not\nshift when that internal enum changes. An internal type this copy does not list degrades to\n`UNKNOWN` rather than breaking the response."},"ProviderActionParameterOptionV2":{"properties":{"value":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"}],"title":"Value"},"label":{"type":"string","title":"Label"}},"type":"object","required":["value","label"],"title":"ProviderActionParameterOption","description":"A selectable value for a parameter with a fixed choice list."},"ProviderActionOutputParameterV2":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/ProviderActionParameterTypeV2"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"}},"type":"object","required":["name","type","label","description"],"title":"ProviderActionOutputParameter","description":"One output parameter of an action."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v2/providers/{provider_id}/actions/{action_id}":{"get":{"tags":["endpoint-getProviderActionV2"],"summary":"Get Provider Action","description":"Get a provider action, including its input and output parameters.\n\n**How to use**\n\nUse the action-specific input and output parameter definitions to build inputs. Required fields, connection needs, and runtime behavior differ by action; there is no universal action payload.\n\n**Authentication and permissions**\n\nRequired permissions: `connections.read`. Resource and owner access checks also apply.","operationId":"getProviderActionV2","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StackAIAPIDataResponse_ProviderActionResponseV2_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/stackai-api/rest-api-v2/providers-and-actions/get-v2-providers-provider_id-actions-action_id.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
