$919:30:51Claim
    xAutoDM LogoxAutoDM
    Actions

    Follow

    Follow a user from a connected account.

    POST/v1/actions/follow300 credits

    Send an Idempotency-Key header. Retrying with the same key never repeats the action. How it works

    Request body

    FieldTypeRequiredDescription
    account_idstringRequiredThe connected account to act from (from GET /v1/accounts).
    user_idstringRequiredNumeric X id of the user.

    Request

    curl -X POST https://api.xautodm.com/v1/actions/follow \
      -H "Authorization: Bearer $XAUTODM_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{"account_id":"acc_...","user_id":"44196397"}'

    Response

    Response
    {
      "data": { "done": true, "result": { ... } },
      "meta": { "credits_charged": 500, "credits_remaining": 49500, "request_id": "req_..." }
    }

    Errors use one shape for every endpoint. See errors and rate limits.