Resources API
Manage your directory
For organization staff: add, update, and remove entries in your own community-resource directory. This requires a team key with the directory management scope — developer keys don't have access here.
Endpoint base
https://bynli.com/dash/api/resources Authorization: Bearer bapi_tk_… Content-Type: application/json
List entries
curl "https://bynli.com/dash/api/resources?status=approved&limit=50" \ -H "Authorization: Bearer bapi_tk_…"
Returns every resource owned by your organization, including pending and rejected rows. Supports status, category, limit, and offset.
Add one
curl -X POST https://bynli.com/dash/api/resources \
-H "Authorization: Bearer bapi_tk_…" \
-H "Content-Type: application/json" \
-d '{
"name": "Atlanta Community Food Bank",
"description": "Food distribution for metro Atlanta",
"category": "food",
"address": "732 Joseph E. Lowery Blvd NW",
"phone": "(404) 892-9822",
"website": "https://www.acfb.org"
}'
The entry is added as approved immediately — you're its publisher.
Bulk import
curl -X POST https://bynli.com/dash/api/resources/import \
-H "Authorization: Bearer bapi_tk_…" \
-H "Content-Type: application/json" \
-d '{
"resources": [
{ "name": "Food Bank", "purpose": "Meals for families", "category": "food" },
{ "name": "Legal Aid Society", "phone": "(555) 555-0199" }
]
}'
Rows with no name are skipped. Exact duplicates (same name inside your directory) are skipped. purpose is accepted as a spreadsheet-friendly alias for description. Any row failing validation rolls back the whole batch.
Update
curl -X PUT https://bynli.com/dash/api/resources \
-H "Authorization: Bearer bapi_tk_…" \
-H "Content-Type: application/json" \
-d '{ "id": 142, "hours": "Mon–Fri 9–5" }'
Patch any subset of name, description, category, address, phone, website, hours, status, is_active.
Delete
curl -X DELETE https://bynli.com/dash/api/resources \
-H "Authorization: Bearer bapi_tk_…" \
-H "Content-Type: application/json" \
-d '{ "id": 142 }'
Removes the row and its associated upvotes, saves, and comments.
Categories
Leave category off and Bynli will infer one from the name
and description. Recognized categories: food,
housing, health, employment,
education, childcare, legal,
mental, transport, finance,
community, other.
Errors
| Status | When |
|---|---|
401 | Missing or unknown bearer. |
403 | Your key doesn't have the directory management scope, or the entry belongs to a different organization. |
404 | Entry not found. |
422 | Required field missing or the bulk array is empty. |