API Access

In this article

Use YoPrint's API to connect custom software to your shop's data. An API lets another tool read and update records, such as customer details.

YoPrint was built around an API from the start. Other tools can use the operations listed in the developer documentation. Some actions must be done in the YoPrint web app.

To connect through Zapier, follow Connecting Zapier with YoPrint and Creating a Zap.

Check your team's API access

Your team needs an active subscription or trial on a plan that includes API access, such as Pro or higher.

  • Webhooks and Zapier have the same requirement.
  • Connected AI apps have the same plan requirement, even though they do not use your personal API key.
  • During an active trial of an eligible plan, you can create and use an API key without contacting support.

To check, open Profile as shown in the next section.

  • If the API Access card shows Create API Key or a key, your team has API access.
  • If your plan does not include API access, the card is hidden.
  • If YoPrint refuses to load your key because of the plan, the card shows a message explaining how to upgrade instead of the key.
  • If your team has neither an active subscription nor a trial, the card shows a subscription warning instead of your key.

A key you created on another team does not give this team API access.

If API access is unavailable

If your team’s plan does not include API access, upgrade to the Pro plan or higher under Configuration › Billing. If you do not have billing access, ask someone who does to upgrade the plan. Your team also needs an active subscription or trial.

Get your API key and Team ID

To connect a tool, you need your personal API Key and the Team ID for the team you want to use.

Your API key belongs to your user account. It uses your role on each team.

The Team ID identifies the team. It is not your shop's business name.

Keep your API key private

Treat the key like a password. Anyone who has it can read and change your YoPrint data as you. Store it securely. Only give it to a developer or tool you trust. Never put it in public code or screenshots.

  1. Click your avatar in the top-right corner to open the user menu.

    Open the user menu from your avatar

  2. Click Profile.

    Choose Profile from the user menu

  3. Scroll down to API Access. If you do not have a key yet, click Create API Key. If a key is already shown, go to the next step.

    Create your first personal API key in the API Access card

  4. Click the copy button beside API Key. You can copy the key while it is hidden. Paste it into the tool or a secure place before you copy the Team ID.

    Copy your personal API key

  5. Click the copy button beside Team ID.

    Copy the Team ID for the team you want to connect

Your API key can work with any team you belong to that has API access. Use the Team ID for the team you want to connect.

If you belong to more than one team, click your avatar, open Switch Team, and choose the team you want to connect. YoPrint opens that team.

Open Profile again and copy Team ID from API Access. The Team ID and sample request now refer to the selected team.

Find the developer setup guides

The Make your first request section includes a sample request with your Team ID already filled in. The sample uses a placeholder for the API key. It does not show your key. You can copy the sample and send it to your developer.

  1. Under Make your first request, click Quickstart: your first request. You can also send your developer the quickstart link directly.

    Open the API quickstart from the API Access card

The quickstart shows your developer how to check the API key and Team ID. Next, it covers reading and creating a customer. API requests work with your team's real data rather than a sandbox or test mode. Read the integration testing guide before trying requests that change records.

These guides cover the other setup details:

  • Authentication explains how to send the API key and manage access. The card links to it as How API keys work.
  • Base URL and versions explains which /v1 or /v2 address each operation uses. The same API key works with both.
  • Receive webhooks explains how another tool can receive an event when something happens in YoPrint, such as when an order is created. Your developer can set up webhooks through the API. You can also add one in YoPrint under Configuration › Settings › Webhooks.
  • Use your key in Zapier, Make or n8n is the guide the card links to for those tools.

Try requests in Postman

Postman lets you send API requests without writing code. Its Free plan includes the API client. Follow Postman's quick start for its current app instructions. Then use YoPrint's developer documentation for the request address and credentials.

Keep your API key secure

The API Access card shows the last recorded use of your key. When available, it also shows the kind of app that used it. If you see No use recorded yet, YoPrint has not recorded any use of your key. The card does not list all connected tools.

If your API key may have been exposed, follow Replace an exposed API key. To replace it, click Regenerate API Key on the API Access card and confirm.

Regenerating your key immediately stops the old key from working on every team you belong to. You cannot turn a key off without creating a new one. Update every connected tool that used the old key.

Changing your sign-in password does not replace your API key.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.