Ruby gem to use the full TransIP API (v4.2). Uses an updated version of savon, and implements the new request signing method that the guys at TransIP have introduced into their api. So far, i have only tested the :get_domain_names, :get_info and :set_dns_entries calls.

The transip API makes use of public/private key encryption. You need to use the TransIP control panel to give your server access to the api, and to generate a key. You can then use the key together with your username to gain access to the api

For more info see:

Credits for full rewrite to work with new TransIP API version go to Richard Bronkhorst (


Install from rubygems (

gem install transip

or add in your Bundle Gemfile:

gem 'transip'

For the latest version: Download / clone the repository. Bundle install the needed gems and require the lib.

git clone git://
cd transip
bundle install
irb # and require './lib/transip'

API Credentials

Enable the TransIP API via Make sure:

  • you enable the API

  • add your IP to the access list

  • create and save your RSA private key


For the most up-to-date documentation see the source files.

Setup the API client:

# use this in production
transip = 'your_username', key: 'your_private_rsa_key', ip: '', mode: :readwrite)

In development you can leave out the ip. To test request use :readonly mode.

transip.actions #  => [:batch_check_availability, :check_availability, :get_whois, :get_domain_names, :get_info, :batch_get_info, :get_auth_code, :get_is_locked, :register, :cancel, :transfer_with_owner_change, :transfer_without_owner_change, :set_nameservers, :set_lock, :unset_lock, :set_dns_entries, :set_owner, :set_contacts, :get_all_tld_infos, :get_tld_info, :get_current_domain_action, :retry_current_domain_action_with_new_data, :retry_transfer_with_different_auth_code, :cancel_domain_action]

transip.request(:get_info, :domain_name => '')
transip.request(:get_whois, :domain_name => '')
transip.request(:set_dns_entries, :domain_name => '', :dns_entries => ['test', 5.inutes, 'A', '')])
transip.request(:register,'', nil, nil, ['test', 5.minutes, 'A', '')]))
transip.request(:set_contacts, :domain_name => '', :contacts => ['type', 'first', 'middle', 'last', 'company', 'kvk', 'companyType', 'street', 'number', 'postalCode', 'city', 'phoneNumber', 'faxNumber', 'email', 'country')])

Please feel free to contribute and send me a pull request via Github!

Copyright © 2013 Richard Bronkhorst, released under the MIT license