Skip to main content

Add product

POST 

https://api.publicsquare.com/accounts/self/products

Add a product to the Account.

Permissions

  • account:write

Request

Bodyrequired

    productstringnullable

    Product

    Possible values: <= 50 characters

    Example: payments

Responses

Created

Schema
  • Array [
  • string
  • ]

Authorization: X-API-KEY

name: X-API-KEYtype: apiKeyscopes: account:writedescription: Authorization by API Key inside request's X-API-KEY headerin: header
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.publicsquare.com/accounts/self/products");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("X-API-KEY", "<X-API-KEY>");
var content = new StringContent("{\n \"product\": \"payments\"\n}", null, "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.publicsquare.com
Auth
Body required
{
  "product": "payments"
}
ResponseClear

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