How do i bind workers and d1 database using api

For Workers & Pages, what is the name of the domain?

not required

What is the issue or error you’re encountering

i want api to bind worker and d1 databasw