Calling on REST API in Attribute Field

Hey there, we’re trying to call on an external api with the following structure:

curl -X GET
https://username.carto.com/endpoint/’ \ REPLACING THIS WITH %VALUE%
-H ‘authorization: Basic dXNlcm5hbWU6MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg5MA==’

We’re trying to implement this within Listings → Attributes → “ex.” Attribute → Display → Format… We want our users to be able to enter their profile link from the external website & have that value replace endpoint url.

Would love some guidance, thanks in advance.

Sorry, I can’t quite understand the required result, but you can try using the core WordPress API REST API Handbook | WordPress Developer Resources We currently don’t support GET endpoints for listings (these are planned), but since listings are implemented as custom “hp_listing” post type, it’s available in the core WordPress API.