Skip to main content

Before You Start: Credentials, Scopes and Security

The values you need from Cuseum, which scope each operation requires, and how to keep secrets safe.

Gather these items first so your first request works.

Credentials You Need from Cuseum

Value

What it is

User email and password

A Cuseum user with access to the target museum.

museum_id

The ID of the museum the user belongs to.

client_id

The UID of the OAuth application provided by Cuseum.

client_secret

The secret of the OAuth application provided by Cuseum.

Scopes

The permissions enabled for your integration.

To request any of these, or to ask about pricing, contact [email protected].

Request Only the Scopes You Need

When you request a token you list the scopes (permissions) you want, separated by spaces. Ask for the smallest set that matches the operations you will call:

Operation

Scope to request

Create an external user

write_external_users

List external users

read_external_users

List pass books

read_pass_books

The OAuth application must have the scopes enabled. If your integration calls more than one endpoint family, include every matching scope. The reference examples also include the public scope.

Keep Secrets Safe

  • Keep the client_secret, the user password, access tokens and refresh tokens confidential.

  • Store them in a secret manager or protected environment variables. Do not commit them to source control.

  • Never include them in support tickets or logs.

  • Use HTTPS for every request.

  • Send tokens in the Authorization header, never in a URL.

  • Treat pass download URLs as sensitive, even when they are called public or preview URLs.

Next Step

Did this answer your question?