Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Aveco Agency API
version: 0.1.0
tags:
- name: Agency
paths:
/api/agency/overview:
get:
summary: Agency Overview
operationId: agency_overview_api_agency_overview_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Agency
/api/agency/portfolio:
get:
summary: Agency Portfolio
description: '«Обзор клиентов»: every client project the user has an active membership in, with the
sending verdict, results of the period vs the previous one, what needs action and the
campaign status. Read-only; the user only ever sees his own projects (see
agency_portfolio_service). Search, sorting and paging are done here, over at most
MAX_PROJECTS projects aggregated in bulk.'
operationId: agency_portfolio_api_agency_portfolio_get
parameters:
- name: days
in: query
required: false
schema:
type: integer
default: 30
title: Days
- name: from
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: From
- name: to
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: To
- name: q
in: query
required: false
schema:
type: string
default: ''
title: Q
- name: sort
in: query
required: false
schema:
type: string
default: attention
title: Sort
- name: dir
in: query
required: false
schema:
type: string
default: desc
title: Dir
- name: filter
in: query
required: false
schema:
type: string
default: all
title: Filter
- name: page
in: query
required: false
schema:
type: integer
default: 1
title: Page
- name: per_page
in: query
required: false
schema:
type: integer
default: 10
title: Per Page
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Agency
/api/agency/team:
get:
summary: Agency Team
description: 'People who work in my client projects and what I may do with them (read-only; only data of
projects where I hold an active membership, people only from projects whose team I may see).'
operationId: agency_team_api_agency_team_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Agency
/api/agency/team/assign:
post:
summary: Agency Team Assign
description: 'Body: {user_id | email (+first_name), role_key, settings{grants,data_scope,can_assign,channels},
project_ids[<=50]}. 200 + one row per project; the request itself fails only on bad input.'
operationId: agency_team_assign_api_agency_team_assign_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Agency
/api/agency/team/revoke:
post:
summary: Agency Team Revoke
description: 'Body: {user_id, project_ids[<=50] | all:true}. `all` touches only projects where I may remove
people and the person is not the project owner; the rest is counted in `skipped`.'
operationId: agency_team_revoke_api_agency_team_revoke_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Agency
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
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