POST /oauth/token
To generate an OAuth2 Authentication token, pass through your Client key
and Client secret
that you received at Telstra Developer account.
The value for grant_type is client_credentials
and value for scope is free-trial-numbers:read free-trial-numbers:write messages:read messages:write reports:read reports:write virtual-numbers:read virtual-numbers:write
.
The token will expire in one hour.
Servers
- https://products.api.telstra.com/messaging/v3
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/x-www-form-urlencoded" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
client_id |
String | Yes | |
client_secret |
String | Yes | |
grant_type |
String | Yes |
Default value: "client_credentials" |
scope |
String | No |
Default value: "free-trial-numbers:read free-trial-numbers:write messages:read messages:write reports:read reports:write virtual-numbers:read virtual-numbers:write" |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.