The protocol IS the API. You essentially just send a JSON message to a relay. What's a bit more difficult than in other social media is the fact that you have to handle your keys and sign the message accordingly. That's to ensure the message cannot be forged by someone else. You want someone else to hold your keys? Then what's the sense of everything here?