Get a single Entity by ID through API

HI,

I am trying to get all fields from an entity that triggers a webhook.

so now i get the Id from the entity, but i hit a wall … i always get schema field not found and dont know what to do

this is the query json i send via curl … the UUID i get from the webhook trigger data

[
         {
           "command": "fibery.entity/query",
           "args": {
             "query": {
               "q/from": "CMS/Contact",
               "q/select": [
                  "CMS/First Name",
                  "CMS/Last Name"
                ],
               "q/where": ["=", ["fibery/id"], "****UUID****" ]
             }
           }
         }
       ]

thanks for any hint

i made the mistake to think i can get the data directly into the “where”, but it needs to be a parameter:

[
         {
           "command": "fibery.entity/query",
           "args": {
             "query": {
               "q/from": "CMS/Contact",
               "q/select": [
                 "fibery/id",
"CMS/Name"

               ],
               "q/where": ["=", ["fibery/id"], "$id"],
               "q/limit": 1
             },
             "params": { "$id": "****UUID*****" }
           }
         }
      ]
1 Like