Skip to main content
Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

API Call for my custom copilot

(2) ShareShare
ReportReport
Posted on by 29

Hello, I wanted some help in the copilot studio.

Once I have created a custom copilot using the studio with some dummy training data. How do I access it in my application?

Is there any API or any endpoint that is generated after the copilot is created?

And is the license available for commercial purpose to use our custom copilot in our software?

Any Help would be really appreciated with some steps or some documentation resources.

Thanking You.

Categories:
  • juangonzalezAuc Profile Picture
    80 on at
    API Call for my custom copilot
    You can also add the copilot to your sharepoint app or create its own app using this:
     
    I made it work in the second case (Sharepoint app using sharepoint data as knowledge) but I see no reason for it not to work on the first case.
     
    If you want to use Sharepoint as a knowledge source you need to enable authentication, I believe there's no way around that
  • Suggested answer
    Vinoth Selvam Profile Picture
    1,560 Super User 2025 Season 1 on at
    API Call for my custom copilot
    Hi Adnan4,
     
    Can you please help to share how you made it work for the benefit of others please.
     
    Thanks in Advance!
  • NN-25101323-0 Profile Picture
    2 on at
    API Call for my custom copilot
    Hello Adnan4
    Glad that you were able to figure out this. I am also looking for a solution to access copilot from a website via API. I am not willing to embed the <iframe> code to the HTML source code and make the chatbot appear on the website. 
    Can you please explain how you were able to achieve this? Perhaps can you share some reference other than the documentation?
     
    Thank you in advance! 
     
  • Adnan4 Profile Picture
    29 on at
    Re: API Call for my custom copilot

    Hello, Dear Community ,
    I just wanted to let you know that the Copilot's, API and integration are finally working well using the DirectLine API.
    Thank you for your efforts in helping me solve this.
     
    In the next phase, I want to train my copilot in my copilot studio.
    Please let me know what methods and techniques to use to train my copilot.
    Your answers are much appreciated.

  • holgerimbery Profile Picture
    4 on at
    Re: API Call for my custom copilot

    @Adnan4 :
    Please go to Settings -> Security -> Authentication and tick "No Authentication"

    https://learn.microsoft.com/en-us/microsoft-copilot-studio/configuration-end-user-authentication


  • Adnan4 Profile Picture
    29 on at
    Re: API Call for my custom copilot

    Any Idea how we can fix this?

     

  • Adnan4 Profile Picture
    29 on at
    Re: API Call for my custom copilot

    Adnan4_1-1711447249673.png

    i have not used DirectLine but i just used the <iframe> tag which i got it from the channels.
    but when i click Login i am getting the above error..

  • Adnan4 Profile Picture
    29 on at
    Re: API Call for my custom copilot

    Adnan4_0-1711446894018.png

    after adding the copilot in a test website it worked and when it asked for login it gave this error, i went to azure and added a new URI too, but still gives me this error.

    Is there a way to fix it?

     

  • Adnan4 Profile Picture
    29 on at
    Re: API Call for my custom copilot

    yes i fixed it and i got the <iframe> tag for the custom website.

    coming to your question, my use of copilot is a requirement from my company and also it is low code, so i am exploring on how to add a copilot assistant in our website since copilot studio is from microsoft?

    Let me check what is BF Webchat, is it a low code platform to create a copilot assistant?

  • adilei Profile Picture
    on at
    Re: API Call for my custom copilot

    1. Change authentication to "No Authentication" or "Manual", and then publish, to enable the custom website channel.

     

    2. Copilots built with copilot studio are accessible via the Directline API. 

     

    Out of curiosity, why would you want a "headless" copilot? BF Webchat is a really flexible client for Directline which can cover most requirements. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 169 Super User 2025 Season 1

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 150

#3
sandeep_angara Profile Picture

sandeep_angara 75