Permit.io Email Configurations API
None
None
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/permitio:permitio-email-configurations-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Permit.io Email Configurations API
description: Authorization as a service
version: 2.0.0
tags:
- name: Email Configurations
description: None
paths:
/v2/facts/{proj_id}/{env_id}/email_configurations:
get:
tags:
- Email Configurations
summary: Get Email Configuration
description: 'Gets the email configuration defined within an environment.
The SMTP password and the Mailgun api key are returned masked.'
operationId: get_email_configuration
security:
- HTTPBearer: []
parameters:
- name: proj_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
title: Proj Id
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
example: my_project
- name: env_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
title: Env Id
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
example: my_environment
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EmailConfigurationRead'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Email Configurations
summary: Create Or Update Email Configuration
description: Create new configuration or updates the email configuration
operationId: create_or_update_email_configuration
security:
- HTTPBearer: []
parameters:
- name: proj_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
title: Proj Id
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
example: my_project
- name: env_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
title: Env Id
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
example: my_environment
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EmailConfigurationCreate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EmailConfigurationRead'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v2/facts/{proj_id}/{env_id}/email_configurations/send_test_email:
post:
tags:
- Email Configurations
summary: Send Test Email
description: 'Sends a test email to the email address defined in the user.
A masked password or api key is replaced by the stored one.'
operationId: send_test_email
security:
- HTTPBearer: []
parameters:
- name: proj_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
title: Proj Id
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
example: my_project
- name: env_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
title: Env Id
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
example: my_environment
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EmailConfigurationCreate'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
MailgunEmailConfigurationCreate:
properties:
from_address:
type: string
title: From Address
description: The from address the mails will be sent from
api_key:
type: string
title: Api Key
description: The api key of the mail provider. Reads return it masked as `********`; sending `********` back keeps the stored api key, so `********` itself cannot be set as the api key.
region:
type: string
title: Region
description: The region of the mail provider
domain:
type: string
maxLength: 65536
minLength: 1
format: uri
title: Domain
description: The domain of the mail provider
email_provider_type:
type: string
title: Email Provider Type
description: The type of the email provider
default: mailgun
enum:
- mailgun
additionalProperties: false
type: object
required:
- from_address
- api_key
- region
- domain
title: MailgunEmailConfigurationCreate
SMTPEmailConfigurationRead:
properties:
host:
type: string
title: Host
description: The host of the SMTP provider
from_address:
type: string
format: email
title: From Address
description: The from address the mails will be sent from
port:
type: integer
title: Port
description: The port of the SMTP provider
username:
type: string
title: Username
description: The username of the SMTP provider
password:
type: string
title: Password
description: The password of the SMTP provider. Reads return it masked as `********`; sending `********` back keeps the stored password, so `********` itself cannot be set as the password.
email_provider_type:
type: string
title: Email Provider Type
description: The type of the email provider
default: smtp
enum:
- smtp
id:
type: string
format: uuid
title: Id
description: Unique id of the email_configuration
organization_id:
type: string
format: uuid
title: Organization Id
description: Unique id of the organization that the email_configuration belongs to.
project_id:
type: string
format: uuid
title: Project Id
description: Unique id of the project that the email_configuration belongs to.
environment_id:
type: string
format: uuid
title: Environment Id
description: Unique id of the environment that the email_configuration belongs to.
additionalProperties: false
type: object
required:
- host
- from_address
- port
- username
- password
- id
- organization_id
- project_id
- environment_id
title: SMTPEmailConfigurationRead
MailgunEmailConfigurationRead:
properties:
from_address:
type: string
title: From Address
description: The from address the mails will be sent from
api_key:
type: string
title: Api Key
description: The api key of the mail provider. Reads return it masked as `********`; sending `********` back keeps the stored api key, so `********` itself cannot be set as the api key.
region:
type: string
title: Region
description: The region of the mail provider
domain:
type: string
maxLength: 65536
minLength: 1
format: uri
title: Domain
description: The domain of the mail provider
email_provider_type:
type: string
title: Email Provider Type
description: The type of the email provider
default: mailgun
enum:
- mailgun
id:
type: string
format: uuid
title: Id
description: Unique id of the email_configuration
organization_id:
type: string
format: uuid
title: Organization Id
description: Unique id of the organization that the email_configuration belongs to.
project_id:
type: string
format: uuid
title: Project Id
description: Unique id of the project that the email_configuration belongs to.
environment_id:
type: string
format: uuid
title: Environment Id
description: Unique id of the environment that the email_configuration belongs to.
additionalProperties: false
type: object
required:
- from_address
- api_key
- region
- domain
- id
- organization_id
- project_id
- environment_id
title: MailgunEmailConfigurationRead
SMTPEmailConfigurationCreate:
properties:
host:
type: string
title: Host
description: The host of the SMTP provider
from_address:
type: string
format: email
title: From Address
description: The from address the mails will be sent from
port:
type: integer
title: Port
description: The port of the SMTP provider
username:
type: string
title: Username
description: The username of the SMTP provider
password:
type: string
title: Password
description: The password of the SMTP provider. Reads return it masked as `********`; sending `********` back keeps the stored password, so `********` itself cannot be set as the password.
email_provider_type:
type: string
title: Email Provider Type
description: The type of the email provider
default: smtp
enum:
- smtp
additionalProperties: false
type: object
required:
- host
- from_address
- port
- username
- password
title: SMTPEmailConfigurationCreate
EmailConfigurationRead:
oneOf:
- $ref: '#/components/schemas/SMTPEmailConfigurationRead'
- $ref: '#/components/schemas/MailgunEmailConfigurationRead'
title: EmailConfigurationRead
discriminator:
propertyName: email_provider_type
mapping:
mailgun: '#/components/schemas/MailgunEmailConfigurationRead'
smtp: '#/components/schemas/SMTPEmailConfigurationRead'
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
EmailConfigurationCreate:
oneOf:
- $ref: '#/components/schemas/SMTPEmailConfigurationCreate'
- $ref: '#/components/schemas/MailgunEmailConfigurationCreate'
title: EmailConfigurationCreate
discriminator:
propertyName: email_provider_type
mapping:
mailgun: '#/components/schemas/MailgunEmailConfigurationCreate'
smtp: '#/components/schemas/SMTPEmailConfigurationCreate'
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
securitySchemes:
HTTPBearer:
type: http
description: 'Authorization header, we support the bearer authentication scheme (see: RFC 6750)'
scheme: bearer
bearerFormat: JWT