https://www.courier.com/ logo
Join Discord
Powered by
# ask-support
  • c

    coco

    10/08/2024, 3:43 PM
    In case anyone else needs this, this is a change in the Courier API, so the first and last lines need to be changed to:
    Copy code
    Courier.setIOSForegroundPresentationOptions(options: [
    ...
    ]);
  • Inbox not Populating messages
    b

    Bright Olawale

    10/17/2024, 12:59 PM
    I have been able to subscribe and user on the backend of my application, I am also able to send a message and I see it in my dashboard log, but everything I check my application, the user’s inbox is still empty. I’m using the client key (test) on the front end and I followed the steps listed in the documentation. What can I do?
    b
    • 2
    • 3
  • Teams Account
    i

    Indopan

    10/18/2024, 2:50 PM
    Does anyone have a teams channel that works with courier. I set this up but i dont have the tools menu in my teams account. What kind of teams account can actually receive messages from courier because teams is very different than slack or discord https://www.courier.com/docs/platform/channels/direct-message/microsoft-teams/#step-4-install-the-bot
    b
    • 2
    • 5
  • Using mailgun as a provider, mailgun has
    b

    Brandon

    10/22/2024, 2:59 PM
    Using mailgun as a provider, mailgun has multiple domains connected. We use
    from trycourier import Courier
    Copy code
    client.send(event=event,
                           recipient=recipient_id,
                           profile={"email": email_to, "phone_number": phone},
                           data=data,
                           override=override)
    to send emails using python. How do i override the 'fromAddress' such that we can send from one of the other domains we have configured in mailgun? We only want to override this from address in some circumstances (we do not want to change the default from address in the provider config) Any idea how we can do this? I saw some docs on how to override the mailgun provider, but none on how to override when we are using client.send and passing event,recipient etc like we are
    b
    • 2
    • 5
  • message_id
    n

    neondream

    11/19/2024, 10:42 AM
    Hello, I need to send an email notification in reply to the already sent notification. To do that, I need a message id. Is there a way to get this message id from courier? I use sendgrid integration.
    r
    • 2
    • 2
  • In the Courier Node SDK for the server,
    u

    Umair A

    11/24/2024, 11:39 PM
    In the Courier Node SDK for the server, is there an easy way to add users similar to the
    createOrReplace(tenantId: string, ...
    method available for tenants ? I can't seem to find one and not sure how best to add tenant's in. Use-case is that as a SaaS product, I want to just create the users in Courier for my own tenants
    j
    • 2
    • 1
  • Hello, we're troubleshooting this
    p

    Paul

    12/02/2024, 1:31 AM
    Hello, we're troubleshooting this message not being delivered: 1-6742abf3-1875b29d5fd6683bf8a55640 We just resent it and it worked fine (delivered and opened). Can you tell us why it didn't work the first time? The error we see is "Polling Error":
    Copy code
    {
      "errorMessage": "Maximum time expired and still no status available from provider.",
      "provider": "mailgun",
      "retryCount": 16,
      "willRetry": false,
      "source": "polling"
    }
    https://cdn.discordapp.com/attachments/1062886075229548624/1312954238409637928/image.png?ex=675842ab&is=6756f12b&hm=16232cf9efee0e8b223e24a767d6385f7994e6d085d4ba0fbc2d09ad451a0fbd&
    j
    • 2
    • 2
  • Hello, we think our SMS notifications
    p

    Paul

    12/19/2024, 3:26 AM
    Hello, we think our SMS notifications have stopped getting delivered. Can you take a look? I just triggered message 1-67638fd7-b0e0287debdd37dda3d6f7f2 which delivered its email, but not its SMS In contrast, here's a message from Dec 1st that delivered its SMS 1-674d2926-cdb9f97939bebf0a5e323561
    j
    • 2
    • 3
  • p

    Paul

    12/21/2024, 12:06 AM
    Hi @bwebs any update on this?
  • d

    danishahmed219

    01/07/2025, 10:11 PM
    Hi @bwebs Any update on the above message?
  • Hey folks, I am trying to setup courier
    a

    ankitjey

    01/14/2025, 7:10 AM
    Hey folks, I am trying to setup courier inbox and have been facing an issue with the same. I went through the instructions but when trying to add inbox channel in courier I am getting this error as seen in the logs
    Copy code
    {
            "channel": "inbox",
            "selected": false,
            "reason": "None of provider(s) slack,discord,msteams,gmail,webhook is configured for channel inbox."
          },
    The request id for the same is
    1-67860b17-25262c9d159193d0f52b3c14
    Is there something I am doing wrong or something wrong with our setup?
    • 1
    • 1
  • Auth scopes
    r

    Ryan Christiani

    01/21/2025, 10:53 PM
    Hey there, I am setting up a auth token for notifications. Where can I find teh scopes that you can use. I only see example in the docs but I can not find the full list of them. I only see this example foudn here. https://www.courier.com/docs/platform/inbox/authentication#json-web-tokens-authentication
    Copy code
    {
      "scope": "user_id:{{userId}} inbox:read:messages inbox:write:events"
    }
    Thanks
    b
    • 2
    • 4
  • Datacenters
    a

    Andrei

    01/22/2025, 9:47 PM
    Hi, my team and I are considering using Courier for notifications for our fintech B2B platform. We have very strict data residency requirements. Where are your data centers located?
    b
    • 2
    • 4
  • What does this mean? Why did it fail to
    i

    Indopan

    01/23/2025, 2:48 PM
    What does this mean? Why did it fail to render? We are observing several slack messages like these and it cuts off all the lines of a message except the 1st line. https://cdn.discordapp.com/attachments/1062886075229548624/1331998905742790797/image.png?ex=679b9126&is=679a3fa6&hm=f0564a495c166044c6441f11af31ed2bb742d4d78a9a2133bc238d67bde03592&
    j
    • 2
    • 2
  • a

    ankitjey

    01/27/2025, 7:11 PM
    Hey found a case where email subject override in a different language(japanese in this case), resulted in weird subject being rendered. How do make sure proper subject is rendered as it was sent? Attaching one of the request ids
    1-678d9228-2c3d107a799738637dc7f311
  • Inbox not connecting
    a

    AS

    02/01/2025, 3:35 AM
    I'm having an issue with Courier Inbox (using react-inbox) where the real time push notifications via websocket connection do not appear to work. Details: - The websocket connection to "wss://realtime.courier.com/?auth={{token}}" fails to open (no messages sent or received, just immediately changes to "Finished" status) - The request to https://inbox.courier.com/q works fine and returns all of the notifications. This suggests to me that it's not an auth issue. - I checked the error returned by the onError handler in wsOptions but found no useful information - I tested in command line using wscat package: npx wscat -c "wss://realtime.courier.com/?auth={{token}}" and received a 502 error: "error: Unexpected server response: 502" Any ideas on what's wrong? Thanks in advance
    b
    • 2
    • 27
  • a

    AS

    02/01/2025, 3:57 AM
    Also I don't believe it's related to CSP since I don't have it configured in my app
  • m

    mufeed

    02/04/2025, 12:50 PM
    how can we implement flutter sdk with client key and user id instead of accesstoken?
  • Hello, I have integrated Courier into my
    m

    mufeed

    02/07/2025, 7:14 AM
    Hello, I have integrated Courier into my Flutter project, and push notifications work perfectly in the debug build. However, in the production or release build, they are not working. I am using the same access token and user ID in both builds. What could be the reason for this issue?
    j
    • 2
    • 1
  • m

    mufeed

    02/07/2025, 7:27 AM
    Could there be any additional steps, configurations, or permissions required for production?
  • Hello, Is there any way to get the
    r

    Rohit Shrestha

    02/20/2025, 7:26 AM
    Hello, Is there any way to get the content of each message in same API to list messages? Or any other way https://cdn.discordapp.com/attachments/1062886075229548624/1342034529686261920/image.png?ex=67c7fc8d&is=67c6ab0d&hm=0c49642f1949ba6347f35eaf43bb8d65548456a91f800564f0b5c6a393e8e7e9&
    j
    • 2
    • 1
  • h

    HiddenDemise

    02/20/2025, 1:46 PM
    I think there's some outdated documentation for the Python sample code. Snippet from "Send"
    Copy code
    # Install Courier SDK: pip install trycourier
    from trycourier import Courier
    
    client = Courier(auth_token="YOUR_AUTH_TOKEN_HERE")
    
    resp = client.send_message(
      message={
        "to": {
          "email": "email",
        },
        "template": "RENBSWB0004NY5MR694HE142ZH7D",
        "data": {
          "firstName": "firstName",
          "verificationLink": "verificationLink",
          "SenderName": "SenderName",
        },
      }
    )
    
    print(resp['requestId'])
    Source from github:
    Copy code
    import courier
    
    from courier.client import Courier
    
    client = Courier(
      authorization_token="YOUR_TOKENY" # Defaults to COURIER_AUTH_TOKEN
    )
    
    response = client.send(
      message=courier.ContentMessage(
        to=courier.UserRecipient(
          email="marty_mcfly@email.com",
          data={
            "name": "Marty",
          }
        ),
        content=courier.ElementalContentSugar(
          title="Back to the Future",
          body="Oh my {name}, we need 1.21 Gigawatts!",
        ),
        routing=courier.Routing(method="all", channels=["inbox", "email"]),
      )
    )
    
    print(response)
    Takeaways are the outdated package import, and the auth_token vs authorization_token field
  • Hey, There. Help needed Im using @
    a

    Asadbek Abduvoitov

    02/28/2025, 12:43 PM
    Hey, There. Help needed Im using @trycourier/client-graphql for API interaction, but our Snyk Github action is failing because of this error: https://cdn.discordapp.com/attachments/1062886075229548624/1345013453668094014/Screenshot_2025-02-28_at_17.42.14.png?ex=67c846e4&is=67c6f564&hm=9d80912a2fdb29ccc0b015198b7ee470f7c82c495071f9c9ca4c4e2cda924fc8&
    j
    • 2
    • 1
  • Hi team,
    j

    Jose 👑

    03/11/2025, 6:20 AM
    Hi team, Are there any other ways to see logs beyond 1 month ago? It looks like trying to inspect logs from a specific date/time doesn't show logs for that entire day, but that date-time Thanks! https://cdn.discordapp.com/attachments/1062886075229548624/1348903294298230844/image.png?ex=67d12796&is=67cfd616&hm=c2d290c74dd1ce1aeb3c2e978a504609973e2918a04b37d4c383a5eddeb13d90&
    j
    • 2
    • 1
  • j

    jansonxavier

    03/13/2025, 10:19 PM
    Hey, I'm using courier to manage my in app notifications and could use some help with courier's messages sdk. I am sending messages with the CourierClient that have data in them, specifically user_uid, type, and thread_id. The code below is an example of how I'm doing it
    Copy code
    import { CourierClient } from "@trycourier/courier";
    
    const courier = new CourierClient({
      authorizationToken: process.env.COURIER_AUTH_TOKEN,
    });
    
    export const createNotification = async (
      user_uid: string,
      type: string,
      thread_id: string
    ) => {
      try {
        const { requestId } = await courier.send({
          message: {
            to: {
              user_id: user_uid,
            },
            content: {
              title: "Reminder",
              body: "You have a reminder",
            },
            routing: {
              method: "single",
              channels: ["inbox"],
            },
            data: {
              user_uid,
              type,
              thread_id,
            },
          },
        });
        return requestId;
      } catch (error) {
        console.error(error);
        throw error;
      }
    };
    When I get these messages on the frontend with Courier's provider, the data is present. However, when I get the data on the backend with CourierClient, the data doesn't seem to be there
    Copy code
    export async function getCourierMessage(messageId: string) {
      try {
        const courier = getClient();
        const response = await courier.messages.get(messageId);
    
        console.log(JSON.stringify(response, null, 2));
    
        return response as any;
      } catch (error) {
        console.error("Error fetching courier message:", error);
        return null;
      }
    }
    The console log of response doesn't seem to match the expected type. I can't seem to find the data that I sent with the message here. I have also tried courier.messages.getContent and courier.messages.getHistory. Thank you in advance!!
  • f

    FentimanJ

    03/18/2025, 3:02 PM
    How do I attach files to emails using C#?
  • m

    MAT

    03/25/2025, 4:02 AM
    Hey there does trycourier/react-inbox support react 19 in next 15 - getting ref error !Any solutions ?
  • u

    utopia

    04/08/2025, 8:37 PM
    im trying to initilaize courier with jwt authentication but keeps getting 401 or 403? i have the jwt token passed in some courier documentation says authorization, some says authentication, which one is it what's wrong here <CourierProvider userId={user.id} authorization={authorization} clientKey={process.env.NEXT_PUBLIC_COURIER_CLIENT_KEY} > {children}
  • u

    utopia

    04/08/2025, 9:06 PM
    also is there a way to send mass message in courier ui directly without selecting user one by one?
  • d

    DZ

    04/10/2025, 12:18 PM
    Hi Courier team! Could someone please help me understand how to use
    slackBlocks
    ? I couldn't get these docs to work: https://www.courier.com/docs/platform/content/elemental/elements#example-3