Important
APIs under the /beta version are subject to change. Use of these APIs in production applications is not supported.
Create a new agentRegistration object.
This API is available in the following national cloud deployments.
| Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
|---|---|---|---|
| ✅ | ❌ | ❌ | ❌ |
Permissions
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
| Permission type | Least privileged permissions | Higher privileged permissions |
|---|---|---|
| Delegated (work or school account) | AgentRegistration.ReadWrite.All | Not available. |
| Delegated (personal Microsoft account) | Not supported. | Not supported. |
| Application | AgentRegistration.ReadWrite.All | Not available. |
HTTP request
POST https://graph.microsoft.com/beta/copilot/agentRegistrations
Request headers
| Name | Description |
|---|---|
Authorization |
Bearer {token}. Required. Learn more about authentication and authorization. |
Content-Type |
application/json. Required. |
Request body
In the request body, supply a JSON representation of an agentRegistration object.
The following table lists the required properties when you create an agentRegistration.
| Property | Type | Description |
|---|---|---|
createdBy |
String | The unique identifier of the user or app who created the agent registration. Required. |
displayName |
String | Display name for the agent instance. Required. |
sourceAgentId |
String | Original agent identifier from the source system. Required. Must be non-null, non-empty, and contain at least one non-whitespace character. |
sourceCreatedDateTime |
DateTimeOffset | The date and time when the agent instance was created from source. Required. |
sourceLastModifiedDateTime |
DateTimeOffset | The date and time when the agent instance was last modified from source. Required. |
If the agent originates in a source system, supply that system's original agent identifier in sourceAgentId. Use a non-empty value that contains a non-whitespace character. This is the source-system identifier; use the registration's id to address the Microsoft Graph resource.
Response
If successful, this method returns a 201 Created response code and an agentRegistration object in the response body.
Example
Request
The following example shows a request.
POST https://graph.microsoft.com/beta/copilot/agentRegistrations
Content-Type: application/json
{
"displayName": "Contoso Travel Booking Agent",
"description": "Helps users search and book flights and hotels",
"createdBy": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"sourceCreatedDateTime": "2025-02-15T10:00:00Z",
"sourceLastModifiedDateTime": "2025-03-10T14:30:00Z",
"ownerIds": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"8b7e9c42-1234-5678-90ab-def123456789"
],
"sourceAgentId": "contoso-travel-booking-v1",
"originatingStore": "ContosoAgentStore",
"managedByAppId": "7c3f8d45-e29b-41d4-a716-556677889900",
"agentIdentityId": "identity-550e8400-e29b-41d4-a716-446655440000",
"agentIdentityBlueprintId": "blueprint-550e8400-e29b-41d4-a716-446655440000",
"a2aAuthorization": {
"referenceId": "2f1a9b8c-4d3e-4a7f-9c6b-1e5d8a2f7b30",
"type": "oAuthPluginVault"
},
"agentCard": {
"name": "Contoso Travel Booking Agent",
"version": "1.0.0",
"description": "Helps users search and book flights and hotels",
"provider": "Contoso",
"capabilities": {
"streaming": false,
"pushNotifications": false
},
"defaultInputModes": ["text"],
"defaultOutputModes": ["text"],
"skills": [
{
"id": "book-flight",
"name": "Book Flight",
"description": "Search and book flights based on user preferences"
},
{
"id": "book-hotel",
"name": "Book Hotel",
"description": "Search and book hotels at the destination"
}
]
}
}
Response
The following example shows the response.
HTTP/1.1 201 Created
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#copilot/agentRegistrations/$entity",
"id": "550e8400-e29b-41d4-a716-446655440000"
}