After that find the Bot Users option on the left sidebar, under the Features heading.

Click “Add a Bot User”

Click Add a Bot User to create your bot. You’ll be given an option to enter in the bot username. Click Add Bot User to complete the process, and that’s it! Your bot user is now added and ready to be used.

Minute 2: Send Messages Using the MessageBird API on StdLib

With MessageBird API on StdLib, you can enjoy seamlessly adding SMS functionality (for customer communication, two-factor authentication and more) into your app using the world’s fastest global communication platform, MessageBird, with a simple, functional API on StdLib. But first you’ll need to do a few steps to initialize your first number.

Visit the MessageBird’s Profile on StdLib

Visit https://stdlib.com/@messagebird in your browser. You should see a profile page that looks like the following:

MessageBird’s Profile on StdLib

In order to get started, the first step is to initialize your first phone number, but first we’ll have to agree to the MessageBird terms of service. To do this, find the messagebird.numbers API on the right hand side of the screen and click on the name.

Accept the Terms of Service for MessageBird APIs

Great, you found your way around StdLib profiles! (You even have your own generated when you create an account.) Now it’s time to initialize your first phone number, but first we’ll need to accept MessageBird’s Terms of Service (ToS). You should be on a page that looks like the following:

The API Reference Page for messagebird.numbers

This is the messagebird.numbers API reference page. If you can’t find this page, simply click here https://stdlib.com/@messagebird/lib/numbers/# to visit it.

From here, we can see a list of available API methods. (These are just things you can do with phone numbers!) Before we get started, you’ll notice a big orange notification (see above) indicating you need to accept a Terms of Service in order to use this API.

Click the “click here” button to accept the Terms of Service

Follow the on-screen instructions to accept. You should see a screen that asks you to claim a StdLib namespace (or if you already have one you can click “Already Registered”) and login there.

Claim namespace

When complete, you should see the following on the API page:

You’re all set!

Great! Now we can use all of MessageBird’s APIs. Let’s initialize that first number!

Minute 3: Initialize Your First Phone Number

Awesome. We’ve now accepted the MessageBird API’s ToS and we have a StdLib account to boot! Please make sure you’re on the numbers API Reference page before continuing: https://stdlib.com/@messagebird/lib/numbers/#available

What you’re looking for is the available method. You can find it by scrolling down the page, or clicking available from the sidebar on the left.

The documentation for the “available” API

From here, we can see a code example and a big green button on the right that says Run Function. See the dropdown to the right of the “Run Function” button? There first thing we’ll want to do is select a Library Token. If you’re logged in (you should be!), clicking on the dropdown should yield something like this:

Select one of your Library Tokens

Select a Library Token, and hit the Run Function button. You’ll be greeted with an output like the following:

A list of available numbers

Don’t lose this! Pick a number that you like (out of the ones shown), and copy it to your clipboard. Now you’ll want to go back to the numbers.initialize API and paste your number the the number field in the documentation.

If you can’t find the numbers.initialize API, simply click here: https://stdlib.com/@messagebird/lib/numbers/#initialize.

Enter in your Copied Number

Enter in your chosen number from the result of the numbers.available API above. Click Run Function, ensuring that the correct Library Token is selected from the Dropdown on the right (unauthenticated won’t work!).

Congratulations! You have now received your first FREE number with the MessageBird API on StdLib. Additional numbers can be claimed for $0.99 from the numbers.claim API.