Skip to main content

Create an access token

POST 

https://api.botsubscription.com/v1/bot:bot_id/:api_key/members/accessToken

Create a new access token for a member to activate memberships without payment. For more information on access tokens, please check out our help article.

Request

Responses

The access token has been successfully created.
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.botsubscription.com");
request.Headers.Add("Accept", "application/json");
var content = new StringContent(string.Empty);
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.botsubscription.com
Parameters
— pathrequired
— pathrequired
Body required
{
  "plan_id": 0,
  "member_id": "string"
}
ResponseClear

Click the Send API Request button above and see the response here!