POST HTTP Request to URL with JSON

I want to POST HTTP Request to URL like this http://serverurl/api and JSON format like this


I’ve tried to use http request like this picture

But result does not like expected, how can I do?

  "nodes": [
      "parameters": {
        "requestMethod": "POST",
        "url": "http://serverurl/api",
        "allowUnauthorizedCerts": true,
        "jsonParameters": true,
        "options": {
          "bodyContentType": "json"
        "bodyParametersJson": "{\"RQST\":{\"name\":\"name\",\"REQID\":\"1\",\"LABELID\":\"2\",\"CONTRACTTYPEID\":\"1\",\"CONTRACTID\":\"3\",\"TEMPLATEID\":\"4\",\"PARAMS\":[{\"NUM\":\"1\",\"CONTENT\":\"Content\"}],\"SCHEDULETIME\":\"\",\"MOBILELIST\":\"84912345678\",\"ISTELCOSUB\":\"0\",\"AGENTID\":\"6\",\"APIUSER\":\"user\",\"APIPASS\":\"pass\",\"USERNAME\":\"usn\",\"DATACODING\":\"0\"}}"
      "name": "HTTP Request1",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
  "connections": {}

Can you share the API docs?

1 Like

@RicardoE105 Because this is internal API docs, so I’ve send you by PM, please check for me, thanks.

Just checked. I will do the following:

1 - Remove the property name. You are sending it but it’s not on the parameter list. It’s in the example thought. Kind of confusing.

2 - Make sure that REQID, LABELID, CONTRACTTYPEID, CONTRACTID, TEMPLATEID, and all IDS have a valid values.

3 - Make sure that SCHEDULETIME can be empty.

I wish I could do more but since the docs are in a vietnamese it’s hard.

@RicardoE105 I’ve pm you true script and true link which tested on Postman result ok, but n8n show result not expected. Please check. Thanks!