-
Notifications
You must be signed in to change notification settings - Fork 0
Integration Example
briansemify edited this page Oct 20, 2025
·
2 revisions
Sequence (recommended)
- Authenticate -> save token
- Create account with external_account_identifier
- Confirm returned account_id and campaign_id
- Attach product/service plan to account/campaign
- Run keyword budget estimation
- Add keywords to campaign
- Pull reports periodically
- Store any IAM credentials needed (securely)
Example: Authenticate (curl)
curl -X POST "https://developers.semify.com/api/v1/authentication/login" \
-H "Content-Type: application/json" \
-d '{"username":"api_user","password":"s3cr3t"}'Example: Create account (curl)
curl -X POST "https://developers.semify.com/api/v2/accounts" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"account_name":"Acme","phone":"555-1234","email":"a@acme.com","first_name":"John","last_name":"Smith","address_1":"123 Main St","city":"Anytown","state":"CA","postal":"90210","country":"US","website_url":"https://acme.com","external_account_identifier":"ACME-001"}'Idempotency tip
- If account creation might be called twice, first
GETby external_account_identifier; onlyPOSTif not found.
Example error handling flow
- On 401: re-authenticate and retry once.
- On 429: backoff and retry up to N times with exponential delays.