Cannot use Teams Phones api

Brandt Smith 96 Reputation points
2025-04-17T13:53:56.3833333+00:00

Also here is the raw input:

{

    "uri": "https://graph.microsoft.com/beta/communications/phoneNumbers?$filter=assignmentType eq 'User'\n",

    "method": "GET",

    "headers": {

        "Authorization": "sanitized",

        "Content-Type": "application/json"

    }

}

 

 

And here is the raw output:

{

    "statusCode": 400,

    "headers": {

        "Transfer-Encoding": "chunked",

        "Vary": "Accept-Encoding",

        "Strict-Transport-Security": "max-age=31536000",

        "request-id": "8a2c1b0c-3297-44d3-aaa8-cc07126d263d",

        "client-request-id": "8a2c1b0c-3297-44d3-aaa8-cc07126d263d",

        "x-ms-ags-diagnostic": "{"ServerInfo":{"DataCenter":"West US","Slice":"E","Ring":"4","ScaleUnit":"002","RoleInstance":"BY3PEPF0002E899"}}",

        "Date": "Wed, 16 Apr 2025 14:00:02 GMT",

        "Content-Type": "application/json",

        "Content-Length": "249"

    },

    "body": {

        "error": {

            "code": "BadRequest",

            "message": "Resource not found for the segment 'phoneNumbers'.",

            "innerError": {

                "date": "2025-04-16T14:00:02",

                "request-id": "8a2c1b0c-3297-44d3-aaa8-cc07126d263d",

                "client-request-id": "8a2c1b0c-3297-44d3-aaa8-cc07126d263d"

            }

        }

    }

} any ideas about why this isnt working?

Microsoft Teams Phone
Microsoft Teams Phone
Teams Phone enables call-control and Private Branch Exchange (PBX) capabilities in the Microsoft 365 cloud with Microsoft Teams.
305 questions
0 comments No comments
{count} votes

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.