Imports earlier messages from someone on another service into a linked channel or a thread beside it, after an admin asked for a history import. The community writes each message at its original time, and clients see them only when they load history.
Input
application/jsonchannel
stringspace-ref
Required
The linked channel, or a thread beside it, the messages go into.
community
stringdid
Required
The community the registration belongs to.
messages
array
Required
The messages, oldest first.
maxLength: 25 itemsminLength: 1 itemsregistration
stringtid
Required
Record key of the registration.
Output
application/jsonresults
array
Required
One result per message, in input order.
Errors
AuthRequired
The request is missing, malformed, or unverifiable service auth. CommunityNotFound
No community exists at the given DID. RegistrationNotFound
The community has no bridge registration with that id. Forbidden
The caller is not the bridge this registration belongs to. RegistrationDisabled
An admin has paused this registration. ChannelNotLinked
The channel is not linked to this registration. RateLimited
The bridge sent too many requests. Retry after the interval in the response headers. CredentialsUnavailable
The AppView cannot act as the community because its stored credentials are missing or unusable. BackfillNotRequested
No admin has asked for a history import on this channel. OutsideBackfillRange
A message was sent before the requested range or after the request. Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Imports earlier messages from someone on another service into a linked channel or a thread beside it, after an admin asked for a history import. The community writes each message at its original time, and clients see them only when they load history.",
"errors": [
{
"description": "The request is missing, malformed, or unverifiable service auth.",
"name": "AuthRequired"
},
{
"description": "No community exists at the given DID.",
"name": "CommunityNotFound"
},
{
"description": "The community has no bridge registration with that id.",
"name": "RegistrationNotFound"
},
{
"description": "The caller is not the bridge this registration belongs to.",
"name": "Forbidden"
},
{
"description": "An admin has paused this registration.",
"name": "RegistrationDisabled"
},
{
"description": "The channel is not linked to this registration.",
"name": "ChannelNotLinked"
},
{
"description": "The bridge sent too many requests. Retry after the interval in the response headers.",
"name": "RateLimited"
},
{
"description": "The AppView cannot act as the community because its stored credentials are missing or unusable.",
"name": "CredentialsUnavailable"
},
{
"description": "No admin has asked for a history import on this channel.",
"name": "BackfillNotRequested"
},
{
"description": "A message was sent before the requested range or after the request.",
"name": "OutsideBackfillRange"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"channel": {
"description": "The linked channel, or a thread beside it, the messages go into.",
"format": "space-ref",
"type": "string"
},
"community": {
"description": "The community the registration belongs to.",
"format": "did",
"type": "string"
},
"messages": {
"description": "The messages, oldest first.",
"items": {
"description": "A message.",
"ref": "#importedMessage",
"type": "ref"
},
"maxLength": 25,
"minLength": 1,
"type": "array"
},
"registration": {
"description": "Record key of the registration.",
"format": "tid",
"type": "string"
}
},
"required": [
"community",
"registration",
"channel",
"messages"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"results": {
"description": "One result per message, in input order.",
"items": {
"description": "A written message.",
"ref": "#importResult",
"type": "ref"
},
"type": "array"
}
},
"required": [
"results"
],
"type": "object"
}
},
"type": "procedure"
}