added
2025-07-09 - Nodejs SDK with Link Support!
8 days ago by Jared Wray
Our Node.js SDK @hyphen/sdk has been updated with the ability to generate short codes via Link . Here is how easy it is:
import { Hyphen } from '@hyphen/sdk';
const hyphen = new Hyphen({
apiKey: 'your_api_key',
});
const longUrl = 'https://hyphen.ai';
const domain = 'test.h4n.link';
const options = {
tags: ['sdk-test', 'unit-test'],
};
const response = await hyphen.link.createShortCode(longUrl, domain, options);
console.log('Short Code Response:', response);