Copilot Custom API Plugin. Adding a Header Item

Tyler Selfski 0 Reputation points
2025-03-12T01:02:08.75+00:00

I'm creating a copilot api plugin for one of the apps my org uses. I retrieved the openAPI spec file from the app's manufacturer and I've created a new declarative agent in VSCode with the teams and kiota plugins. I've also registered the Basic auth value in the teams vault per the documentation. I'm having trouble tho because when I test this it seems copilot doesn't have access to the API. I know there is another header value for a clientid that the API requires but I can't figure out how to incorporate that in the files. Any help would be greatly appreciated.

Microsoft Copilot Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nivedipa-MSFT 3,646 Reputation points Microsoft External Staff Moderator
    2025-03-12T06:48:00.1633333+00:00

    @Tyler Selfski - API plugins support sending the API key in three ways:

    • As a bearer token in the Authorization header
    • As a value in a custom header
    • As a query parameter

    Please refer below document for more details: https://learn.microsoft.com/en-us/microsoft-365-copilot/extensibility/api-plugin-authentication#api-key-authentication

    Thanks, 

    Nivedipa 

    -----------------------------------------------------------------------------------------------------------

    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.