API Keys

Loading API keys...

API Documentation

1. Store Data

Endpoint: POST https://postghost.ai/wp-json/unlockafe-addons/v1/database/store

Parameters:

  • api_key - Your API key (required, can be passed as URL parameter or in JSON body)
  • table - Table name (required)
  • data - Object with column-value pairs (required)
POST https://postghost.ai/wp-json/unlockafe-addons/v1/database/store?api_key=YOUR_API_KEY
Content-Type: application/json

{
  "table": "your_table_name",
  "data": {
    "column1": "value1",
    "column2": "value2"
  }
}

2. Get Data

Endpoint: GET https://postghost.ai/wp-json/unlockafe-addons/v1/database/get

Parameters:

  • api_key - Your API key (required, passed as URL parameter)
  • table - Table name (required)
  • where - JSON string with conditions (optional)
  • limit - Number of records (default: 100)
  • offset - Offset for pagination (default: 0)
GET https://postghost.ai/wp-json/unlockafe-addons/v1/database/get?api_key=YOUR_API_KEY&table=your_table_name&where={"id":"123"}&limit=10

3. Update Data

Endpoint: POST https://postghost.ai/wp-json/unlockafe-addons/v1/database/update

Parameters:

  • api_key - Your API key (required, can be passed as URL parameter or in JSON body)
  • table - Table name (required)
  • data - Object with column-value pairs to update (required)
  • where - Object with conditions to identify rows to update (required)
POST https://postghost.ai/wp-json/unlockafe-addons/v1/database/update?api_key=YOUR_API_KEY
Content-Type: application/json

{
  "table": "your_table_name",
  "data": {
    "column1": "new_value1",
    "column2": "new_value2"
  },
  "where": {
    "id": "123"
  }
}

4. Delete Data

Endpoint: DELETE https://postghost.ai/wp-json/unlockafe-addons/v1/database/delete

Parameters:

  • api_key - Your API key (required, can be passed as URL parameter or in JSON body)
  • table - Table name (required)
  • where - Object with conditions to identify rows to delete (required)
DELETE https://postghost.ai/wp-json/unlockafe-addons/v1/database/delete?api_key=YOUR_API_KEY
Content-Type: application/json

{
  "table": "your_table_name",
  "where": {
    "id": "123"
  }
}

All-in-one platform for scheduling, analytics, and engagement that helps you grow your social media presence faster.