Custom api routing for one pages

I would like to ask for your help.
I have a page called registration.
And I want to create records here from api.
I looked at the possibility of creating individual routes, but unfortunately I didn’t get any further. (Routing | Kirby CMS)

The question is, if I create a unique route, do I still need basic auth?
Does anyone have experience with this, whether it is worth solving this?

The point would be that the registrations would arrive in these pages and the users would not be registered directly in the users.
Later, if the received records are correct, the normal kirby user would be created from this.

Thank you in advance for your help!

If you use the Kirby API, then you need basic auth. If you use a custom route, you don’t, although you still need to authenticate if you want to create/update pages, users etc. You can do that with $kirby->impersonate('kirby').

See also: Creating pages from frontend | Kirby CMS (doesn’t do it from a route but from a controller, but you should get the idea).

1 Like

Thanks for your reply, this link looks like a good place to start.