I have a question mainly about APIs.
How do APIs keep their endpoints secure or even hidden?
For example, if I link my website up to vercel/analytics, how do they tell the difference between a real anaytical log request and one that a malicious hacker copied with cURL and spammed it. How would I be able to make my own API endpoint that can do this task too.
Be able to keep it so secure or even hidden so someone can't see the request. If I was to use the vercel/analytics and I used the track('Event') function, how does vercel keep the API so secure that a malicious user cant repeat that request again and again but vercel knows when my website is sending it normally.