Push API
Integration Test Endpoint
this protected endpoint allows you to generate payloads that are published to sns, simulating production payloads such as event, people, session participation and vendor lead capture you can use this to produce payloads and test your integration/filtering or routing of messages for example, you may want to test different workflows for 'attended' vs 'not attended' people overview this endpoint is protected and requires a valid jomablue api token added a bearer token to the authorization request header authentication firstly, obtain a valid token from the authentication endpoint authentication curl l x post "https //acme jomablue com/api/v1/auth/login" \\ h "content type application/json" \\ d '{"email" "apiuser\@jomablue com", "password" "verylongapitoken"}' endpoint this endpoint will allow you to publish a mock payload to sns for each resource type or you can customise the payload in order to change values to test your business logic you are required to include a valid authorization bearer header and the content type header as per the examples below request for the mock payloads mock event curl l x post "https //acme jomablue com/integration/api/test/payload" \\ h "content type application/json" \\ h "authorization bearer eyj0exaioijkv1 " \\ d '{"resource type" "event"}' mock person curl l x post "https //acme jomablue com/integration/api/test/payload" \\ h "content type application/json" \\ h "authorization bearer eyj0exaioijkv1 " \\ d '{"resource type" "person"}' mock session participation curl l x post "https //acme jomablue com/integration/api/test/payload" \\ h "content type application/json" \\ h "authorization bearer eyj0exaioijkv1 " \\ d '{"resource type" "session participation"}' mock lead curl l x post "https //acme jomablue com/integration/api/test/payload" \\ h "content type application/json" \\ h "authorization bearer eyj0exaioijkv1 " \\ d '{"resource type" "lead"}' example response this is an example response to the http request the 'payload' is published via sns simultaneously example response { "result" { "messageid" "3d2cca88 0547 58e1 9634 aa9135fe0693", "@metadata" { "statuscode" 200, "effectiveuri" "https \\/\\/sns ap southeast 2 amazonaws com", "headers" { "x amzn requestid" "45ee1d26 fd19 5800 82e3 7d3fcda0a672", "date" "sun, 02 feb 2025 08 36 09 gmt", "content type" "text\\/xml", "content length" "294", "connection" "keep alive" }, "transferstats" { "http" \[ \[] ] } } }, "payload" { "resource type" "event", "generated at" "2025 02 02t08 36 09 178812z", "identifiers" { "id" "acme\\/event\\/123" }, "data" { "name" "sonic conference 2025", "start time" "2024 12 25t12 00 00 000000z", "end time" "2024 12 26t12 00 00 000000z", "short description" "an awesome education event", "description" "for the 10th year we are running the awesome educatio ", "person count goal" 3000, "venue name" "icc sydney", "venue address" "14 darling dr, sydney nsw 2000", "timezone" "australia\\/sydney", "updated at" "2025 02 02t08 36 09 178812z", "created at" "2025 02 02t08 36 09 178812z", "metadata" { "text" "anything", "selector" "option2", "predefined" "predefinedvalue" }, "categories" \[ { "id" "acme\\/category\\/1231", "name" "delegate" }, { "id" "acme\\/category\\/1232", "name" "vip" }, { "id" "acme\\/category\\/1233", "name" "crew" }, { "id" "acme\\/category\\/1234", "name" "jomablue support" } ] } } } to test business logic you can also provide full payloads in the request to /integration/api/test/payload with values that are more suited to your use case in its simplest form, this can be used to test a person as "attended" or "not attended" the event in a complex example, you can alter the event meta data and organisation uid's to ensure that data is routed to expected destinations within your organisation examples are below with slight changes to data values custom event payload curl l x post "https //acme jomablue com/integration/api/test/payload" \\ h "content type application/vnd api+json" \\ h "authorization bearer eyj0exaioijkv1qilcjh " \\ d '{ "resource type" "event", "generated at" "2025 01 28t04 27 07 012624z", "identifiers" { "id" "acme/event/123" }, "data" { "name" "corporate event 22", "start time" "2024 12 25t12 00 00 000000z", "end time" "2024 12 26t12 00 00 000000z", "short description" "an awesome education event", "description" "corporate event desciption", "person count goal" 3000, "venue name" "sydney convention centre", "venue address" "n/a", "timezone" "australia/sydney", "updated at" "2025 01 28t04 27 07 012624z", "created at" "2025 01 28t04 27 07 012624z", "metadata" { "event owner" "jane smith", "region" "emea", "cost center" "0x7718 cogs" }, "categories" \[ { "id" "acme/category/1231", "name" "attendee" }, { "id" "acme/category/1232", "name" "speaker" }, { "id" "acme/category/1233", "name" "staff" }, { "id" "acme/category/1234", "name" "major sponsor" } ] } }' custom person curl l x post "https //acme jomablue com/integration/api/test/payload" \\ h "content type application/vnd api+json" \\ h "authorization bearer eyj0exaioijkv1qil " \\ d '{ "resource type" "person", "generated at" "2025 01 28t04 45 34 089026z", "context" { "event id" "acme/event/123", "event name" "sonic conference 2025", "event metadata" { "event owner" "jane smith", "region" "emea", "cost center" "0x7718 cogs" } }, "identifiers" { "first name" "james", "last name" "dean", "email" "jd\@example com", "phone" "", "company" "example inc ", "id" "acme/event person/123", "organisation uid" "0x8718741991a" }, "data" { "job title" "accountant", "cancelled" false, "checked in" true, "first check in" null, "import type" "import", "updated at" "2025 01 28t04 45 34 089026z", "created at" "2025 01 28t04 45 34 089026z", "custom fields" \[ { "key" "member id", "value" "0xj18ajalopqq" }, { "key" "data consent", "value" "yes" }, { "key" "primary interest", "value" "technology" } ], "categories" \[ { "id" "acme/category/2", "name" "attendee" }, { "id" "acme/category/3", "name" "day 1" } ] } }' custom session participation curl l x post "https //acme jomablue com/integration/api/test/payload" \\ h "content type application/json" \\ h "authorization bearer eyj0exaioijkv1qilcjhbg " \\ d '{ "resource type" "session participation", "generated at" "2025 01 28t04 27 07 322076z", "context" { "event id" "acme/event/123", "event name" "sonic conference 2025", "event metadata" { "text" "anything", "selector" "option2", "predefined" "predefinedvalue" }, "person first name" "walt", "person last name" "mcgraw", "person email" "walt\@example com", "person phone" "+61491570006", "person company" "barrows, heaney and watsica", "person id" "acme/event person/123", "person organisation uid" "4ab9ecb4 91cd 34ba 928e b6d929b81a1c", "session id" "acme/session/123", "session name" "session of discovery", "session organisation uid" "ecb44ab9 91cd 34ba 928e b81a1cb6d929" }, "identifiers" { "id" "acme/session participation/123" }, "data" { "attended" false, "updated at" "2025 01 28t04 27 07 322076z", "created at" "2025 01 28t04 27 07 322076z" } }' custom lead curl l x post "https //acme jomablue com/integration/api/test/payload" \\ h "content type application/json" \\ h "authorization bearer eyj0exaioijkv1qilcjhb " \\ d '{ "resource type" "lead", "generated at" "2025 01 28t04 27 07 476819z", "context" { "event id" "acme/event/123", "event name" "sonic conference 2025", "event metadata" { "text" "anything", "selector" "option2", "predefined" "predefinedvalue" }, "person first name" "derrek", "person last name" "jammers", "person email" "derrek jammers\@example com", "person phone" "+61491570006", "person company" "", "person id" "acme/event person/123", "person organisation uid" "404419", "vendor id" "acme/vendor/123", "vendor name" "cloudgate22", "vendor organisation uid" "00918" }, "identifiers" { "id" "acme/lead/123" }, "data" { "updated at" "2025 01 28t04 27 07 476819z", "created at" "2025 01 28t04 27 07 476819z" } }'