Is there a way to get servicedesk details from project key or project id?

I have a scenario in which I want to get servicedesk id from project key or project id .
I checked APIs servicedesk API is limited to getting all servicedesk or getting it servicedesk id.
Is there a way to achieve this ?

After digging a bit deeper in the documentation I could find this

For convenience, any of the resources that require a {serviceDeskId} path parameter also accepts other identifiers.

For example, if a ServiceDesk(id: 15) corresponds to a Project(id: 10012, key: ABC) , then issuing a request to any of:

/rest/servicedeskapi/servicedesk/ABC
/rest/servicedeskapi/servicedesk/projectKey:ABC
/rest/servicedeskapi/servicedesk/projectId:10012
/rest/servicedeskapi/servicedesk/serviceDeskId:15