Share via

HTTPS API for GPT

Test Tlt 0 Reputation points
2024-01-11T14:58:02.24+00:00

Hello Comnunity,

i am a student from Germany and currently trying to build a GPT as project that can read and write Emails. Therefore I am using Outlook and Microsoft Entra. I have already set up a lot of things, but now I need an REST https api url for my gpt. In MS Entra I have set up the permissions such as Mail.Read and so on. The schema/ code writes a different gpt for me. What do I have to do, to make sure my GPT can read and write Mails from my Outlook. Do I really need MS Azure for this type of api? In short where and how do I get a https api?

Thank yall very much in advance!

best regards Florian

Azure OpenAI in Foundry Models
Microsoft Security | Microsoft Graph
Microsoft Security | Microsoft Entra | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Saman Guruge-MSFT 80 Reputation points Microsoft External Staff
    2024-01-13T20:07:36.16+00:00

    Hello Florian! It’s great to hear that you’re working on a GPT project that can read and write emails. To get a REST HTTPS API URL for your GPT, you can use the Outlook REST APIs. These APIs allow you to access Outlook mail, calendar, and contacts data in Microsoft Graph. You can use the Outlook REST APIs to read and write emails from your Outlook account. To get started, you need to authenticate your app using OAuth2. Once you have authenticated your app, you can call the Mail API to retrieve and send emails. You can find more information on how to get started with the Outlook REST APIs on the Microsoft Learn website. You can also find detailed information on how to use the Outlook REST APIs in the Outlook API reference documentation. Some of the main tasks were highlighted below,

    1. Register an application in Azure AD: To register an application in Azure AD, you can use the Azure Portal or Azure CLI. You can find detailed instructions on how to register an application in Azure AD on the Microsoft documentation website.
    2. Configure permissions for your application: Once you have registered your application, you need to configure the required permissions for your application. In your case, you need to configure the Mail.Read and Mail.Send permissions for your application. You can find more information on how to configure permissions for your application on the Microsoft documentation website.
    3. Authenticate your application: To authenticate your application, you need to use OAuth2. You can find more information on how to authenticate your application using OAuth2 on the Microsoft documentation website.
    4. Call the Outlook REST APIs: Once you have authenticated your application, you can call the Outlook REST APIs to read and write emails from your Outlook account. https://learn.microsoft.com/en-us/outlook/rest/get-started If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment"
    1 person found this answer helpful.
    0 comments No comments

Your answer

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