> ## Documentation Index
> Fetch the complete documentation index at: https://help.narmi.com/llms.txt
> Use this file to discover all available pages before exploring further.
# List threads
> List threads across all users. Threads are conversation containers that group related messages and attachments together. Each thread includes metadata such as subject, assignee, category, and user information.
How can we improve these docs? Share your feedback.
### Access requirements
**Required permissions:**
- `GET` requires permission to view Threads.
- `POST` requires permission to create Threads.
- `PUT` requires permission to edit Threads.
- `PATCH` requires permission to edit Threads.
- `DELETE` requires permission to delete Threads.
These permissions are granted by your institution's administrator. Contact them to request access.
**Other requirements:**
- User account must be active.
- Request must originate from an allow-listed IP for service accounts.
## OpenAPI
````json GET /v2/admin/threads/
{
"openapi": "3.0.3",
"info": {
"title": "Narmi Admin API",
"version": "v2 (main)",
"description": "To read about Admin API access and authentication, go to [API Overview](https://docs.narmi.com/docs/narmi-developer-docs/xl9dvbz84o11l-introduction).\n\n### Content types\n\nRequests and responses default to JSON. To use [TOON](https://toonformat.dev/) (Token-Oriented Object Notation), a compact, lossless encoding of JSON that uses fewer tokens in LLM contexts, send `Content-Type: application/toon` for request bodies and `Accept: application/toon` for responses.",
"termsOfService": "https://www.narmi.com/policies/developer-terms-conditions",
"contact": {
"name": "Narmi Support",
"email": "support@narmi.com"
}
},
"servers": [
{
"url": "https://api.sandbox.narmi.dev/",
"description": ""
}
],
"tags": [
{
"name": "account application due diligence answers"
},
{
"name": "account application eligibility answers"
},
{
"name": "account applications"
},
{
"name": "accounts"
},
{
"name": "ach"
},
{
"name": "automatic savings enrollments"
},
{
"name": "billing stats"
},
{
"name": "deposits"
},
{
"name": "device evaluations"
},
{
"name": "entities"
},
{
"name": "external accounts"
},
{
"name": "fedwire"
},
{
"name": "form submissions"
},
{
"name": "forms"
},
{
"name": "groups"
},
{
"name": "iPay credentials"
},
{
"name": "instant transfers"
},
{
"name": "integrations"
},
{
"name": "intra institution transfers"
},
{
"name": "lending application notes"
},
{
"name": "lending applications"
},
{
"name": "messages"
},
{
"name": "organizations"
},
{
"name": "payees"
},
{
"name": "payments"
},
{
"name": "primacy scores"
},
{
"name": "push notifications"
},
{
"name": "recipients"
},
{
"name": "reports"
},
{
"name": "staff assignments"
},
{
"name": "staff-led loan applications"
},
{
"name": "subscriptions"
},
{
"name": "teams"
},
{
"name": "thread categories"
},
{
"name": "transaction evaluations"
},
{
"name": "transactions"
},
{
"name": "user actions"
},
{
"name": "users"
},
{
"name": "webhooks"
},
{
"name": "wires"
},
{
"name": "workflow rules"
}
],
"x-stoplight": {
"id": "3khm4u7yhmbbe"
},
"paths": {
"/v2/admin/threads/": {
"get": {
"operationId": "list_threads",
"description": "List threads across all users. Threads are conversation containers that group related messages and attachments together. Each thread includes metadata such as subject, assignee, category, and user information.\n\n\n\nHow can we improve these docs? Share your feedback.\n\n\n### Access requirements\n\n**Required permissions:**\n- `GET` requires permission to view Threads.\n- `POST` requires permission to create Threads.\n- `PUT` requires permission to edit Threads.\n- `PATCH` requires permission to edit Threads.\n- `DELETE` requires permission to delete Threads.\n\nThese permissions are granted by your institution's administrator. Contact them to request access.\n\n**Other requirements:**\n- User account must be active.\n- Request must originate from an allow-listed IP for service accounts.",
"summary": "List threads",
"parameters": [
{
"in": "header",
"name": "RateLimit-Policy",
"schema": {
"type": "string"
},
"description": "Throttle Policy for the thread endpoint. Based on IETF [RateLimit header fields for HTTP](https://datatracker.ietf.org/doc/html/draft-ietf-httpapi-ratelimit-headers#name-ratelimit-policy-field) proposal.",
"examples": {
"Default": {
"value": "\"anon\";q=60;w=60;pk=throttle_admin_api:anon_, \"user_burst\";q=30;w=1;pk=throttle_admin_api:user_burst_, \"user_per_minute\";q=1000;w=60;pk=throttle_admin_api:user_per_minute_, \"user_per_day\";q=500000;w=86400;pk=throttle_admin_api:user_per_day_"
}
}
},
{
"in": "header",
"name": "Retry-After",
"schema": {
"type": "integer"
},
"description": "Seconds to wait for another successful request",
"examples": {
"Default": {
"value": 60
}
}
},
{
"in": "query",
"name": "assignee",
"schema": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
},
"description": "Filter by team UUID assigned to the thread, or 'unassigned' for no team.",
"explode": false,
"style": "form"
},
{
"in": "query",
"name": "category",
"schema": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
},
"description": "Filter threads by their category UUID, or 'unassigned' for no category.",
"explode": false,
"style": "form"
},
{
"in": "query",
"name": "contact",
"schema": {
"type": "integer"
}
},
{
"in": "query",
"name": "created_after",
"schema": {
"type": "string",
"format": "date-time"
}
},
{
"in": "query",
"name": "created_before",
"schema": {
"type": "string",
"format": "date-time"
}
},
{
"in": "query",
"name": "format",
"schema": {
"type": "string",
"enum": [
"json",
"toon"
]
}
},
{
"in": "query",
"name": "is_read",
"schema": {
"type": "boolean"
},
"description": "Filter threads by whether the customer or member has any unread messages."
},
{
"in": "query",
"name": "last_message_after",
"schema": {
"type": "string",
"format": "date-time"
}
},
{
"in": "query",
"name": "last_message_before",
"schema": {
"type": "string",
"format": "date-time"
}
},
{
"name": "limit",
"required": false,
"in": "query",
"description": "Number of results to return per page.",
"schema": {
"type": "integer"
}
},
{
"name": "offset",
"required": false,
"in": "query",
"description": "The initial index from which to return the results.",
"schema": {
"type": "integer"
}
},
{
"in": "query",
"name": "ordering",
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": [
"-created_at",
"-last_message_at",
"-updated_at",
"created_at",
"last_message_at",
"updated_at"
]
}
},
"description": "Ordering\n\n* `created_at` - Created at\n* `-created_at` - Created at (descending)\n* `updated_at` - Updated at\n* `-updated_at` - Updated at (descending)\n* `last_message_at` - Last message at\n* `-last_message_at` - Last message at (descending)",
"explode": false,
"style": "form"
},
{
"name": "search",
"required": false,
"in": "query",
"description": "A search term.",
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "staff_assignee",
"schema": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "Multiple values may be separated by commas.",
"explode": false,
"style": "form"
},
{
"in": "query",
"name": "state",
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": [
"closed",
"escalated",
"open",
"waiting_for_response"
]
}
},
"description": "Filter threads by their state.\n\n* `open` - Open\n* `closed` - Closed\n* `escalated` - Escalated\n* `waiting_for_response` - Waiting For Response",
"explode": false,
"style": "form"
},
{
"in": "query",
"name": "updated_after",
"schema": {
"type": "string",
"format": "date-time"
}
},
{
"in": "query",
"name": "updated_before",
"schema": {
"type": "string",
"format": "date-time"
}
},
{
"in": "query",
"name": "user",
"schema": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
},
"description": "Filter threads by the external member/customer associated with the thread.",
"explode": false,
"style": "form"
}
],
"tags": [
"messages"
],
"security": [
{
"oauth2": [
"admin_api:threads:read"
]
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PaginatedThreadList"
}
},
"application/toon": {
"schema": {
"$ref": "#/components/schemas/PaginatedThreadList"
}
}
},
"description": ""
},
"401": {
"description": "Authentication is required but was missing or invalid.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AdminApiError"
},
"examples": {
"authentication_required": {
"value": {
"detail": "Authentication credentials were not provided."
}
}
}
}
}
},
"403": {
"description": "The caller is authenticated but not authorized for this action.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AdminApiError"
},
"examples": {
"insufficient_permissions": {
"value": {
"detail": "You do not have permission to perform this action."
}
},
"admin_user_required": {
"value": {
"detail": "You do not have permission to perform this action."
}
},
"not_authorized": {
"value": {
"detail": "User account must be active."
}
}
}
}
}
}
},
"x-stoplight": {
"id": "dhadcblsbgtx7"
}
}
}
},
"components": {
"schemas": {
"PaginatedThreadList": {
"type": "object",
"required": [
"count",
"results"
],
"properties": {
"count": {
"type": "integer",
"example": 123
},
"next": {
"type": "string",
"nullable": true,
"format": "uri",
"example": "http://api.example.org/accounts/?offset=400&limit=100"
},
"previous": {
"type": "string",
"nullable": true,
"format": "uri",
"example": "http://api.example.org/accounts/?offset=200&limit=100"
},
"results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Thread"
}
}
},
"x-stoplight": {
"id": "tgiboaojrfu9l"
}
},
"AdminApiError": {
"type": "object",
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"x-stoplight": {
"id": "as5m3qcqr24n1"
}
},
"Thread": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"readOnly": true
},
"created_at": {
"type": "string",
"format": "date-time",
"readOnly": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"readOnly": true
},
"last_message_at": {
"type": "string",
"format": "date-time",
"readOnly": true
},
"subject": {
"type": "string",
"readOnly": true,
"nullable": true
},
"contact": {
"type": "integer",
"readOnly": true,
"nullable": true
},
"user": {
"allOf": [
{
"$ref": "#/components/schemas/SimpleUser"
}
],
"readOnly": true,
"description": "The customer or member participating in the thread."
},
"is_read": {
"type": "boolean",
"readOnly": true,
"description": "Marked `false` when any message (of `type: 'message'`) has `is_read` set to `false`."
},
"latest_message_preview": {
"type": "string",
"readOnly": true,
"description": "Preview of the latest message in the thread."
},
"state": {
"allOf": [
{
"$ref": "#/components/schemas/ThreadStateEnum"
}
],
"description": "The state of the thread.\n\n* `open` - Open\n* `closed` - Closed\n* `escalated` - Escalated\n* `waiting_for_response` - Waiting For Response"
},
"assignee": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Team assigned to the thread."
},
"category": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Category of the thread."
}
},
"required": [
"assignee",
"category",
"state"
],
"x-stoplight": {
"id": "6icstr8tied1y"
}
},
"SimpleUser": {
"type": "object",
"properties": {
"id": {
"type": "string",
"readOnly": true
},
"email": {
"title": "Email address",
"oneOf": [
{
"type": "string",
"format": "email",
"maxLength": 254
},
{
"type": "string",
"maxLength": 0
}
]
},
"first_name": {
"type": "string",
"maxLength": 150
},
"last_name": {
"type": "string",
"maxLength": 150
},
"full_name": {
"type": "string",
"readOnly": true
},
"is_staff": {
"type": "boolean",
"title": "Staff status",
"description": "Designates whether the user can log into this admin site."
},
"is_active": {
"type": "boolean",
"title": "Active",
"description": "Designates whether this user should be treated as active. Unselect this instead of deleting accounts."
},
"last_login": {
"type": "string",
"format": "date-time",
"nullable": true
}
},
"x-stoplight": {
"id": "4slrewkfsy5pr"
}
},
"ThreadStateEnum": {
"enum": [
"open",
"closed",
"escalated",
"waiting_for_response"
],
"type": "string",
"description": "* `open` - Open\n* `closed` - Closed\n* `escalated` - Escalated\n* `waiting_for_response` - Waiting For Response",
"x-stoplight": {
"id": "q05mcwvtqp1ls"
}
}
},
"securitySchemes": {
"oauth2": {
"type": "oauth2",
"flows": {
"authorizationCode": {
"authorizationUrl": "/v2/oauth/authorize/",
"tokenUrl": "/v2/oauth/token/",
"refreshUrl": "/v2/oauth/token/",
"scopes": {
"admin_api:accounts:read": "Can perform read operations on internal accounts.",
"admin_api:accounts:write": "Can perform write operations on internal accounts.",
"admin_api:account_applications_sensitive_info:read": "Can read sensitive account application info.",
"admin_api:account_application_continuation_links:write": "Can create deposit application continuation links.",
"admin_api:account_applications:read": "Can perform read operations on account applications.",
"admin_api:account_applications:write": "Can perform write operations on account applications.",
"admin_api:ach_companies:read": "Can perform read operations on ACH companies.",
"admin_api:ach_details:read": "Can perform read operations on ACH details.",
"admin_api:applicants:read": "Can perform read operations on applicants.",
"admin_api:ach_payments:read": "Can perform read operations on ACH payments.",
"admin_api:ach_payments:write": "Can perform write operations on ACH payments.",
"admin_api:ach_transactions:read": "Can perform read operations on ACH transactions.",
"admin_api:ach_transfers:read": "Can perform read operations on ACH transfers.",
"admin_api:automatic_savings_enrollments:read": "Can perform read operations on automatic savings enrollments.",
"admin_api:billing_stats:read": "Can perform read operations on billing statistics.",
"admin_api:billing_stats:write": "Can perform write operations on billing statistics.",
"admin_api:deposits:read": "Can perform read operations on deposits.",
"admin_api:device_evaluations:read": "Can perform read operations on device evaluations.",
"admin_api:entities:read": "Can perform read operations on entities.",
"admin_api:transaction_evaluations:read": "Can perform read operations on transaction evaluations.",
"admin_api:external_accounts:read": "Can perform read operations on external accounts.",
"admin_api:fedwire_destinations:read": "Can perform read operations on fedwire destinations.",
"admin_api:forms:read": "Can perform read operations on forms.",
"admin_api:forms:write": "Can perform write operations on forms.",
"admin_api:form_submissions:read": "Can perform read operations on form submissions.",
"admin_api:form_submissions:write": "Can perform write operations on form submissions.",
"admin_api:group:read": "Can perform read operations on groups.",
"admin_api:intra_institution_transfers:read": "Can perform read operations on intra_institution_transfers.",
"admin_api:lending_applications:read": "Can perform read operations on lending applications.",
"admin_api:lending_applications:write": "Can perform write operations on lending applications.",
"admin_api:lending_continuation_links:write": "Can create lending application continuation links.",
"admin_api:lending_continuation_emails:write": "Can send lending application continuation emails.",
"admin_api:messages:read": "Can perform read operations on messages and attachments.",
"admin_api:nacha_passthrough_submissions:read": "Can perform read operations on NACHA passthrough submissions.",
"admin_api:nacha_passthrough_submissions:write": "Can perform write operations on NACHA passthrough submissions.",
"admin_api:passthrough_prospect_invites:read": "Can perform read operations on pass-through test links for prospects.",
"admin_api:passthrough_prospect_invites:write": "Can perform write operations on pass-through test links for prospects.",
"admin_api:organizations:read": "Can perform read operations on organizations.",
"admin_api:organizations:write": "Can perform write operations on organizations.",
"admin_api:payments:read": "Can perform read operations on payments.",
"admin_api:payees:read": "Can perform write operations on payees.",
"admin_api:primacy_scores:read": "Can perform read operations on primacy scores.",
"admin_api:recipients:read": "Can perform read operations on recipients.",
"admin_api:reports:read": "Can perform read operations on reports.",
"admin_api:staff_assignments:read": "Can perform read operations on staff assignments.",
"admin_api:staff_assignments:write": "Can perform write operations on staff assignments.",
"admin_api:statements:read": "Can perform read operations on statements.",
"admin_api:statements:write": "Can perform write operations on statements.",
"admin_api:subscriptions:read": "Can perform write operations on subscriptions.",
"admin_api:threads:read": "Can perform read operations on threads.",
"admin_api:threads:write": "Can create and update message threads.",
"admin_api:transactions:read": "Can perform read operations on transactions.",
"admin_api:instant_transfers:read": "Can perform read operations on instant transfers.",
"admin_api:instant_transfers:write": "Can perform write operations on instant transfers.",
"admin_api:ipay_credentials:read": "Can retrieve stored iPay login IDs.",
"admin_api:lending_applications:liob:write": "Can create or resume third-party lending applications.",
"admin_api:teams:read": "Can perform read operations on teams.",
"admin_api:thread_categories:read": "Can perform read operations on thread categories.",
"admin_api:thread_categories:write": "Can perform write operations on thread categories.",
"admin_api:users:read": "Can perform read operations on users.",
"admin_api:users:sensitive_info:read": "Can perform read operations on sensitive user info.",
"admin_api:users:write": "Can perform write operations on users.",
"admin_api:user_actions:read": "Can perform read operations on user actions.",
"admin_api:push_notifications:read": "Can perform read operations on user push notifications.",
"admin_api:push_notifications:write": "Can perform write operations on user push notifications.",
"admin_api:wire_transactions:read": "Can perform read operations on wire transactions.",
"admin_api:workflow_rule:read": "Can perform read operations on workflow rules."
}
}
}
}
}
}
}
````