Make an X integration: I get [401] Unauthorized: Unauthorized

Im trying to automate publishing in X and i get this [401] Unauthorized: Unauthorized

Please help