Sign in

Get site post types

documented

Get a list of post types available for a site.

GET /sites/{site}/post-typesSitesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://public-api.wordpress.com/rest/v1.1/sites/{{$site}}/post-types?context={{$context}}&http_envelope={{$http_envelope}}&pretty={{$pretty}}&fields={{$fields}}&meta={{$meta}}" \
  -X GET \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}"
Get site post types · WordPress.com · OpenIntegrations