Skip to main content
POST
/
tenants
/
{tenant_id}
/
applications
Create tenant application
curl --request POST \
  --url https://api.tenants.resistant.ai/v0/tenants/{tenant_id}/applications \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cell": "eu-1",
  "scopes": [
    "documents.submissions.read"
  ],
  "auth_method": {
    "type": "<string>",
    "alg": "RS256",
    "kid": "<string>",
    "e": 65537,
    "n": 123
  }
}
'
{
  "id": "<string>",
  "client_id": "<string>",
  "auth_server": "<string>",
  "cell": "eu-1",
  "scopes": [
    "documents.submissions.read"
  ],
  "credentials": {
    "type": "<string>",
    "alg": "RS256",
    "kid": "<string>"
  },
  "_links": {
    "token_url": "<string>"
  }
}

Authorizations

Authorization
string
header
required

JWT with private key. Java example Please note that Token URL is specific for a given environment. Correct URL is in the corresponding environment documentation.

Path Parameters

tenant_id
string
required

Body

application/json
cell
enum<string>
required

An enumeration.

Available options:
eu-1,
us-1,
ap-2,
ap-3,
ca-1
scopes
enum<string>[]
required

An enumeration.

Available options:
documents.submissions.read,
documents.submissions.write
auth_method
RSAAuthentication · object
required

Response

Tenant application created

id
string
required
client_id
string
required
auth_server
string
required

Auth server url

cell
enum<string>
required

An enumeration.

Available options:
eu-1,
us-1,
ap-2,
ap-3,
ca-1
scopes
enum<string>[]
required

An enumeration.

Available options:
documents.submissions.read,
documents.submissions.write
credentials
RSACredentials · object

Credentials are returned only once for newly created applications