Help with setting up an API endpoint

I need to set up an API endpoint to accept a POST request and set up some data and then launch the form.
I have watched the video on the academy, but I am getting errors when I try to submit,
Can anyone offer any support?

What error do you receive?
I see you have Mother’s maiden name in both the payload and as a request variable (URL param), you probably only need one or the other.

1 Like

Thanks for having a look, Bob
This is the error I get:
{
“error”: “core_exception”,
“message”: “C991_20250708_090417”
}

I have watched the Academy videos again, but they don’t quite match my case.
When I removed the field from the XML I put in the “Payload” section, I got a 200 response, but nothing happened.

I am assuming that the way I have set out the payload is wrong.
The “Certificates” object I am trying to save into is a repeatable on a form for applying for a birth certificate and I want the POST request to populate the object(s) and then start the form.
One thing I haven’t really looked at yet is that the XML it’s going to receive may contain multiple “Certificate” tags, so at some point I need to cater for that.


I have created an API Log object, but I am not sure what role this plays in everything.
I have not created an “API Connection” as I couldn’t see how this would be necessary to receive a POST request from and external site. I am testing with Postman at the moment,

The logging will just enable you to debug easier, you can create a page to list and view the log records, which will include the full payload and headers received etc. Once successfully up and running you might turn this off unless needed, to minimise record creation.

And yes, an API Connection won’t be needed here, that is for outbound API requests.

When you received the 200 did you get a new “apply for a duplicate birth certificate” record created in your system? That should be the result as you have the Function’s Action set to “Create”.

I’m not sure if the redirect part will be possible, it’s not something I have tried before from an API Function. Have you tested this bit already using the Event Action which I can see you have created?

1 Like

Thanks Bob. No, it doesn’t seem to have created a case. But in that iteration, I hadn’t managed to get any data from the POST request body.
Can you give me an example of how to do it using the “payload” method. I wonder if I haven’t set it up right.


My other option might be to create a proxy server and pass the information as a query string, but I feel like using the POST endpoint would be better if I can get it working.

Hi Mark, Would you be able to describe what kind of user journey you are trying to achieve?
(Please exclude any internal confidential business information)

2 Likes