Get-GitHubAgentAutomationAutomations
SYNOPSIS
List automations for user
SYNTAX
__AllParameterSets
Get-GitHubAgentAutomationAutomations [-Page <long>] [-PerPage <long>] [-Type <string>] [-AllResults]
[-Accept <string>]
ALIASES
This cmdlet has the following aliases,
- Get-GHAgentAutomationAutomations
DESCRIPTION
The Get-GitHubAgentAutomationAutomations cmdlet invokes the GET method of the /agents/automations endpoint (List automations for user)
[!NOTE] This endpoint is in public preview and is subject to change.
Lists automations created by the authenticated user across repositories they can read. This includes both personal and shared automations created by the caller, but excludes shared automations created by another user.
Use the repository-scoped list operation for those automations. The ‘type’ filter only narrows this creator-scoped collection.
To call this endpoint, OAuth app tokens and personal access tokens (classic) need the ‘repo’ scope.
Fine-grained access tokens for “List automations for user”
This endpoint works with the following fine-grained token types:
- GitHub App user access tokens (https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app)
- Fine-grained personal access tokens (https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token)
The fine-grained token must have the following permission set:
- “Agent tasks” repository permissions (read)
GitHub App installation access tokens are not supported for this endpoint.
Endpoint: GET /agents/automations API version: 2026-03-10
EXAMPLES
EXAMPLE 1
Get-GitHubAgentAutomationAutomations
Invokes GET /agents/automations
EXAMPLE 2
Get-GitHubAgentAutomationAutomations -AllResults
Returns the items of every page
PARAMETERS
-Accept
The Accept header (media type) of the request Default value: application/vnd.github+json
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-AllResults
Follows the pagination links & returns the items of every page. 100 items are requested per page unless the per page parameter is used
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Page
The page number of the results to fetch.
Query parameter [ page ]
Default value: 1
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PerPage
The number of results per page (max 100).
Query parameter [ per_page ]
Default value: 30
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Type
Filter automations by type. ‘personal’ returns automations owned by their creator, ‘shared’ returns automations owned by the repository. Omit to return both.
Query parameter [ type ]
Allowed values: ‘personal’, ‘shared’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
Objects with properties named like the path parameters can be piped to this function
{{ Fill in the Description }}
OUTPUTS
The response of the GitHub API (objects
{{ Fill in the Description }}
NOTES
OperationId: agent-automations/list-automations Category: agent-automations / agent-automations