Detail page for API fetching

Hi team,

which is the best way to create a single page for an item from API fetch?

I have and api endpoint for the list that works perfectly and it supports passing the id for fetching the single item like https://myendpoint?id=5

How can I create the single page templete for receiving the id for every item?

Thanks in advance

Pretty single-item URLs are not supported out of the box because of the WordPress Permalink system. The simplest workaround is to lean on query parameters and let Bricks resolve them:

mydetailpage?id={url_parameter:id}

If you really need nice slugs later on, you’d have to add a custom rewrite rules (or register a stub CPT) to hand the numeric part over to the same query var.