What is the correct URL for my instances Event Tabel REST API endpoint so I can receive events from a third party and what roles does the REST API username require?

annawilliams
Kilo Explorer

I am configuring a new REST API integration into the Events table.   Is this the correct URL for my endpoint:

https://myinstance.service-now.com/api/now/table/em_event?

Also what roles do I need to give to the RESt API that I create for the third party to post to this table?

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Anna,



The api user may not have specific role to consume and fetch/create record in table.


But on safer side you can give rest_service role



The endpoint will be based on the resource you create and give them to consume



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur



Thanks for your reply. The operation will be a Table API Post message only to post events directly into the Events table so I am guessing from the documentation that the URL is correct.



Regards


Anna Williams


Hi @annawilliams @Ankur Bawiskar 

I am also trying to implement the event driven discovery. We setup the SNS topic over AWS. But, while creating the subscription for instance, the endpoint i provided is throwing error(refer to below SS).

RajAbhishek_0-1684504508406.png

 


I followed this document:  Configure the AWS Config service to send event notifications to the ServiceNow instance

I created a user and provided the below mentioned roles: rest_service, snsc_internal, sn_cmp.cloud_event_integration
I used below two endpoint URLs :
1. [https://newly_created_user:user_password@instancename.service-now.com/api/now/cloud_event] This endpoint is throwing the error shown in above SS.

 

2. [https://newly_created_user:user_password@instancename.service-now.com/api/now/table/sn_cmp... This endpoint is also throwing the same error as above.

 

I researched little bit bit and found out that Amazon SNS doesn't support private HTTPS(s) endpoint.(refer to below SS)

RajAbhishek_1-1684504508455.png

 

Could you please help me to find the fix for the error knowing what am I missing here and how can I generate publicly available URL. Also, if there is any other way to do the Event based discovery, pls share that too.
Your help would be very much appreciated.
Thankyou