Skip to content

Instantly share code, notes, and snippets.

@h2floh
Created March 21, 2025 10:58
Show Gist options
  • Save h2floh/8687ee936ff42edc08c75283db76e630 to your computer and use it in GitHub Desktop.
Save h2floh/8687ee936ff42edc08c75283db76e630 to your computer and use it in GitHub Desktop.
AI Agents Service Base URL and sample list agents curl command
# AI Foundry Project Connection String sample: swedencentral.api.azureml.ms;{subscriptionId};{resourceGroupName};{projectName}
# AI Agents Service API Base URL: "https://{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}"
endpoint="https://{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}"
curl -X GET "$endpoint/assistants?api-version=2024-07-01-preview" \
-H "Authorization: Bearer $(az account get-access-token --query accessToken -o tsv)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment