Skip to main content
Gomobile uses API key authentication. Every API request requires a valid API key in the request header.

Getting your API key

API keys are provisioned by the Gomobile team.
Need API access? Request your API key and our team will set you up within 24 hours.
Once you receive your API key, store it securely and use it for all API requests.

How to authenticate

Include your API key in the x-api-key header of every request:
x-api-key: YOUR_API_KEY

Making authenticated requests

Use this endpoint to verify your API key:
curl -X GET https://api.gomobile.ma/api/users/me \
  -H "x-api-key: YOUR_API_KEY"

Using environment variables

Store your API key as an environment variable to keep it secure:
export GOMOBILE_API_KEY="your-api-key"

curl -X GET https://api.gomobile.ma/api/users/me \
  -H "x-api-key: $GOMOBILE_API_KEY"

Security best practices

  • Never commit API keys to version control
  • Use environment variables or a secrets manager
  • Keep your API key private — don’t share it in public forums, emails, or chat
  • Contact support immediately if your key is compromised

Making Your First Call

A complete walkthrough of creating contacts, audiences, flows, and launching your first campaign.