Greetings!
For one of the automation tasks I need to get a project ID.
What I have is a project name and an API.
Unfortunately, the documentation https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-search-get does not explain how to search for the project by name.
Google search does not help either.
The most funny answer was this:

So we spent some time experimenting and at the end found the obvious:
to find a Jira Project by NAME, use the following API call:
https://<your instance>.atlassian.net/rest/api/3/project/search?query={{ProjectName}}
where {{ProjectName}} is a custom variable you have defined in a previous step.
Enjoy.