Filter projects in API by project name

Hello

I would like to get project id via API.
I am creating projects(environments) using cli
> /> rancher env create test

so I know project name. Is there any way to get project id using that name?
What I was trying to use /v1/projects with some sort of filter. Something like

/v1/projects?projectId=XXXX

I was trying
> /v1/projects?name=XXXX

/v1/projects?projectName=XXXX

but without success