Forum Discussion

lenewmaniii's avatar
lenewmaniii
Copper Contributor
Nov 04, 2025

Connect AI Agent via postman

I'm having the hardest time trying to connect to my custom agent (Agent_id: asst_g8DVMGAOLiXXk7WmiTCMQBgj) via Postman. I'm able to authenticate fine, and receive the sequre token which I'm able to run my deployment post with no issues (https://aiagentoverview.cognitiveservices.azure.com/openai/deployments/gpt-4.1/chat/completions?api-version=2025-01-01-preview). But how do I run a post to my agent_id: asst_g8DVMGAOLiXXk7WmiTCMQBgj? I cant find any instructions anywhere. 

2 Replies

  • Cwill83247's avatar
    Cwill83247
    Copper Contributor

    or is this documentation any use ? https://learn.microsoft.com/en-us/rest/api/aifoundry/aiagents/create-thread-and-run/create-thread-and-run?view=rest-aifoundry-aiagents-v1&tabs=HTTP - at this point you specify the agent 

  • Cwill83247's avatar
    Cwill83247
    Copper Contributor

    in the body if you try sending something like this does that work ?

    {

            "messages": [

                {"role": "system",

                "content": "You are a helpful writing assistant"},

                {"role": "user",

                "content": "Write me a poem about flowers"}

            ],

            "model": "gpt-4o"

        }

Resources