← Catalog

Photon

Connect Photon to Claude Code, Codex, Cursor or any MCP agent through CoreSpeed. Send and read iMessage, WhatsApp, SMS and email conversations through Photon, provision the lines and numbers behind them, and manage a project's webhooks, agent profile, metrics and billing. Your agent works through your own Photon account and gets 119 Photon tools; CoreSpeed holds the credential, so the agent never sees the token. Calling it is free.

Tools119

  • photon__get_accountGet the Photon account the connection acts as: id, email, name, phone.
    Free

    Needs an Account Service Key; a project key is refused.

  • photon__get_current_organizationGet the organization this connection acts in — the one a sign-in with Photon was approved for — with the organizationId list_projects needs.
    Free

    Not in Photon's published API document; Photon support confirmed it (needs organization:read).

  • photon__update_accountChange the account's first or last name (lastName null clears it).
    Free

    Needs an Account Service Key.

  • photon__list_connected_applicationsList the OAuth applications authorized on the account.
    Free

    Needs an Account Service Key.

  • photon__revoke_connected_applicationRevoke one OAuth application's grant on the account (application.id, connect_app_…).
    Free

    Needs an Account Service Key.

  • photon__list_account_service_keysList the account's Account Service Keys — names, ids, expiry — never their secrets.
    Free

    Create or revoke them in Photon's dashboard or CLI.

  • photon__get_organization_billing

    Read an organization's billing subscription, charges and entitlements.

    Free
  • photon__list_invoices

    List an organization's invoices (zero-total invoices are left out).

    Free
  • photon__get_organization_payment_method

    Whether the organization has a card on file, and its non-secret details.

    Free
  • photon__create_payment_method_checkoutGet a hosted URL where a person adds a payment card for the organization.
    Free

    Hand the URL to a human; check get_organization_payment_method afterwards.

  • photon__list_billing_plansList Photon's plan catalog (the same for every project): categories, plan codes and what they include.
    Free

    Use it to choose change_plan's category and planCode.

  • photon__get_project_billing

    A project's plans, entitlements and current-period usage.

    Free
  • photon__get_billing_operation

    Poll a plan change (change_plan answers an operation id, pho_bop_…) until it succeeds or fails.

    Free
  • photon__change_planPurchase or change a project's plan for one category (e.g. messaging → a planCode from list_billing_plans).
    Free

    Charges the organization's card on file. Usually answers 202 with a billing operation to poll with get_billing_operation.

  • photon__cancel_subscription

    Schedule a project's billing category to stop at the end of its current period; it stays active until cancelsAt.

    Free
  • photon__resume_subscription

    Remove a scheduled cancellation so the category renews normally.

    Free
  • photon__list_projectsList an organization's active projects, newest first; filter by name text and creation window; page with pageToken.
    Free

    Needs an Account Service Key.

  • photon__count_projects

    Count the projects list_projects would return for the same filters.

    Free
  • photon__check_project_slug

    Whether create_project would accept this slug right now (advisory: the create itself allocates).

    Free
  • photon__create_projectCreate a project in an organization.
    Free

    The slug (3–63 lowercase alphanumerics and single hyphens) is permanent. Needs an Account Service Key.

  • photon__get_project_closure_status

    Progress of a project deletion (delete_project): per-domain progress and whether closure is complete.

    Free
  • photon__get_projectGet a project: name, slug, organization, agent profile.
    Free

    With no projectId, the connection's own project — the way to learn its organizationId.

  • photon__update_projectRename a project (the slug cannot change).
    Free

    Needs an Account Service Key.

  • photon__delete_projectStart deleting a project and everything in it — its lines, numbers, messages and keys.
    Free

    Follow with get_project_closure_status. Needs an Account Service Key; a connection whose own project this is stops working.

  • photon__get_agent_profile

    The project's agent profile: the name and avatar recipients see.

    Free
  • photon__update_agent_profile

    Change the agent's first or last name (lastName null clears it).

    Free
  • photon__create_agent_avatar_uploadStart an avatar change: a ten-minute presigned S3 POST (uploadUrl + formFields) for a JPEG, PNG or WebP up to 5 MiB.
    Free

    Upload the file there without Photon credentials, then commit_agent_avatar with the uploadId.

  • photon__commit_agent_avatar

    Make an uploaded image (create_agent_avatar_upload's uploadId) the agent's avatar.

    Free
  • photon__reset_agent_avatar

    Replace the agent's avatar with Photon's default planet image; the custom avatar is discarded.

    Free
  • photon__list_project_api_keysList a project's API keys — names, permissions, expiry — never their secrets.
    Free

    Create, change or revoke them in Photon's dashboard or CLI. Needs an Account Service Key.

  • photon__send_messageSend into a conversation (Space) as one of the project's agents: a text (plain or markdown), an uploaded attachment or voice note, a reaction to a message (parentMessageId), a poll or a vote on one, a read receipt, a typing update, a DTMF digit on a call, or a group of such parts.
    Free

    SMS, email, WhatsApp, WhatsApp Business and dedicated iMessage lines; email takes to/cc/bcc/subject. Answers 202: the Message with status accepted, then delivered or failed (get_message). Edits, unsends, poll changes and participant changes are their own tools.

  • photon__edit_messageEdit the text of a message this agent sent, where the platform supports edits (iMessage, WhatsApp).
    Free

    Answers 202 with the edit as a Message.

  • photon__unsend_messageUnsend (delete) a message this agent sent, for everyone where the platform supports it.
    Free

    reason and scope are Photon's optional notes on the deletion.

  • photon__remove_reaction

    Take back a reaction this agent added to a message.

    Free
  • photon__update_poll

    Change a poll this agent sent: its question, options or selection mode (the whole poll is restated).

    Free
  • photon__update_space_participantsAdd or remove participants of a group conversation.
    Free

    Pass the User records get_user returns; their timestamps are dropped, as Photon's snapshot shape requires. At least one of added or removed.

  • photon__list_messagesList a project's messages, newest first: filter by line (resourceId), conversation, user perspective, direction, platform and time; page with pageToken (at most 200 a page).
    Free

    Eventually consistent.

  • photon__count_messages

    Count messages matching list_messages' filters; groupBy direction and/or perspectiveUser, or interval=day for daily buckets in a timeZone.

    Free
  • photon__get_message

    Get one message by id: content, sender, space, status (received, accepted, dispatched, delivered, failed) and timestamps.

    Free
  • photon__mark_message_readSend a read receipt for an incoming message from its receiving line.
    Free

    Answers 202 with the action Message that tracks the outcome.

  • photon__list_spacesList conversations: filter by platform, participant (id or phone/email handle), time, or by a message they contain; order by last_message_created_at for most recent activity.
    Free

    At most 100 a page.

  • photon__count_spaces

    Count conversations matching list_spaces' filters; groupBy messagePerspectiveUser splits by the user on the messages (needs messageResourceId).

    Free
  • photon__get_space

    Get one conversation: platform, kind (direct or group), participants and details.

    Free
  • photon__create_spaceOpen (or find) a conversation between Users: iMessage and WhatsApp take exactly 2 participants, SMS 2–9, email 1–51; one must be a project agent.
    Free

    Direct Spaces converge by participants; each call opens a new email thread. Answers the Space.

  • photon__set_space_typingShow or stop a typing indicator in a conversation as an agent (true refreshes; repeat to keep it showing).
    Free

    Answers 202 with the dispatched Message.

  • photon__list_users

    List the people and agents the project knows: filter by platform, time, or by a message they sent or received; or read up to 100 by userIds in one call.

    Free
  • photon__count_users

    Count Users matching list_users' filters.

    Free
  • photon__get_user

    Get one User with a refreshed classification: Human or Agent, handle, platform, and for agents which line (resourceId) they are.

    Free
  • photon__create_userResolve a handle (an E.164 phone number, an email address, an iMessage address) on a platform to a User, creating it if new.
    Free

    The first step before create_space with someone new.

  • photon__list_attachmentsList uploaded attachments: id, filename, content type, size.
    Free

    The bytes come from download_attachment.

  • photon__get_attachment

    One attachment's metadata.

    Free
  • photon__list_project_platforms

    The platform types this project can use (sms, email, whatsapp, whatsapp_business, imessage, …).

    Free
  • photon__get_imessage_platform

    Whether the project is on shared or dedicated iMessage lines, with the shared seat cap.

    Free
  • photon__get_whatsapp_platform

    Whether the project is on shared or dedicated WhatsApp lines, with the shared seat cap.

    Free
  • photon__list_resourcesList everything the project holds — SMS numbers, dedicated lines, WhatsApp senders — oldest first, with each one's abilities (sms, imessage, whatsapp, pstn_voice, …) and state.
    Free

    Filter by type, ability or comma-separated states. In-flight provisions are operations, not resources.

  • photon__get_resource

    One line or number: abilities, state and its public detail (the phone number, health).

    Free
  • photon__release_resourceGive a resource back: an SMS number is retired, a dedicated line returns to the pool; its charge period closes.
    Free

    Usually immediate (200), sometimes an operation to poll (202).

  • photon__list_operations

    List the project's provisioning and release operations, oldest first, running ones included; filter by resourceId, comma-separated states or one type.

    Free
  • photon__get_operation

    Poll one operation until its state is succeeded, failed or cancelled; a finished provision carries the resource, an email domain's detail carries its DNS records.

    Free
  • photon__cancel_operationWithdraw a provision that has not been fulfilled — a dedicated line still waiting for inventory, an SMS number before its provider order.
    Free

    Campaign operations cannot be cancelled.

  • photon__list_imessage_assignments

    List who holds a seat on the project's shared iMessage lines (released seats only with includeReleased).

    Free
  • photon__create_imessage_assignmentGive an end user a seat on a shared iMessage line: their handle (E.164 phone or email) is mapped onto a pooled number the server picks.
    Free

    An email invites them.

  • photon__get_imessage_assignment

    One shared iMessage line assignment.

    Free
  • photon__release_imessage_assignment

    Free a shared iMessage seat and its handle; the row stays for audit with releasedAt set, so repeating is safe.

    Free
  • photon__provision_imessage_lineClaim a dedicated iMessage line for the project.
    Free

    Always an operation (202): capacity can take hours, so poll get_operation or cancel_operation to stop waiting. Needs the dedicated-lines entitlement; billed once a line is claimed.

  • photon__release_imessage_lineRemove iMessage from a dedicated line (the number and any WhatsApp on it stay).
    Free

    Usually immediate, sometimes an operation to poll.

  • photon__list_whatsapp_assignments

    List who holds a seat on the project's shared WhatsApp lines.

    Free
  • photon__create_whatsapp_assignment

    Give an end user's phone number a seat on a shared WhatsApp line; an email invites them.

    Free
  • photon__get_whatsapp_assignment

    One shared WhatsApp line assignment.

    Free
  • photon__release_whatsapp_assignment

    Free a shared WhatsApp seat; repeating is safe.

    Free
  • photon__provision_whatsapp_lineProvision a dedicated WhatsApp line (with shared Voice), on the project's iMessage line when possible so both keep one number.
    Free

    Always an operation (202) to poll or cancel.

  • photon__release_whatsapp_line

    Remove WhatsApp from a dedicated line (iMessage and the number stay).

    Free
  • photon__get_whatsapp_business_account

    The WhatsApp Business Account connected to the project: business, review status, outbound capacity, sender count.

    Free
  • photon__list_whatsapp_business_phone_numbers

    The connected WABA's phone numbers straight from Meta, with whether each is in Photon's inventory.

    Free
  • photon__get_whatsapp_signup_config

    What a browser needs to open Meta's Embedded Signup popup for this project: configId, graphVersion and scopes.

    Free
  • photon__connect_whatsapp_businessFinish Embedded Signup: exchange the code, WABA id and phone-number id the popup returned and connect that number as a whatsapp_sender.
    Free

    Free, but the organization needs a card on file. Answers an operation.

  • photon__create_whatsapp_business_senderRegister one of the project's own SMS-capable VoIP lines as a WhatsApp Business sender; Photon handles the SMS ownership code.
    Free

    Answers an operation.

  • photon__get_whatsapp_business_verification_codeRead the latest WhatsApp Business ownership code Meta texted to one of the project's VoIP numbers, if newer than receivedAfter (within the last two minutes).
    Free

    A missing code is a retryable 404.

  • photon__disconnect_whatsapp_business_accountDisconnect every WhatsApp Business sender and the account itself from the project (the numbers stay in Meta and Photon).
    Free

    Answers an operation to poll.

  • photon__list_sms_countries

    Countries SMS numbers can be bought in.

    Free
  • photon__list_sms_area_codes

    US area codes with current provider coverage for new numbers.

    Free
  • photon__purchase_sms_numberBuy one US local number (optionally in an area code from list_sms_area_codes) as an SMS-enabled resource.
    Free

    Always an operation (202): poll get_operation, cancel_operation while it waits for inventory. Billed on delivery.

  • photon__get_sms_campaign

    An SMS line's 10DLC campaign assignment, its eligibility and the version assign_sms_campaign needs.

    Free
  • photon__assign_sms_campaignAttach (or replace) a ready 10DLC campaign from the organization on an SMS line; needs the current expectedVersion from get_sms_campaign.
    Free

    Provider provisioning runs as an operation.

  • photon__unassign_sms_campaign

    Detach an SMS line's 10DLC campaign (number and campaign stay owned); needs the current expectedVersion.

    Free
  • photon__connect_telegram_bot

    Start connecting a managed Telegram bot: the answer is an operation whose detail.setupUrl a person opens to pick or create the bot; then poll get_operation.

    Free
  • photon__connect_email_domain

    Connect a sending domain: Photon starts provider setup and the operation's detail lists the DNS records to publish; poll get_operation until the domain is READY.

    Free
  • photon__list_voice_profiles

    The project's Voice (SIP routing) profiles; default=true for the project default only.

    Free
  • photon__create_voice_profile

    Create an additional Voice profile (the project default must already exist).

    Free
  • photon__get_default_voice_profile

    The project's default Voice profile, with its inbound and outbound state.

    Free
  • photon__create_default_voice_profile

    Create the project's default Voice profile when it has none (an identical replay returns the existing one).

    Free
  • photon__update_default_voice_profile

    Change the default profile's protocol or media encryption; needs its current expectedVersion.

    Free
  • photon__get_voice_profile

    One Voice profile, with its inbound and outbound state.

    Free
  • photon__update_voice_profile

    Rename an additional profile or change its protocol or media encryption; needs its current expectedVersion.

    Free
  • photon__delete_voice_profile

    Delete an additional Voice profile (never the default); force=true also drops the line overrides pointing at it.

    Free
  • photon__update_voice_profile_inboundPoint a profile's inbound calls at a SIP destination URI (sip: or sips:).
    Free

    Destination authentication is left as it is; set a username and password in Photon's dashboard.

  • photon__delete_voice_profile_inbound

    Remove a profile's inbound destination (the profile and its lines stay).

    Free
  • photon__update_voice_profile_outbound_authentication

    Switch a profile's outbound SIP Digest algorithm (sha-256 recommended, md5 legacy); the credential itself is unchanged.

    Free
  • photon__delete_voice_profile_outbound

    Revoke a profile's outbound calling credential (inbound and lines stay).

    Free
  • photon__get_voice_line_profile

    Which Voice profile a line overrides to; a line on the project default answers without profileId.

    Free
  • photon__assign_voice_line_profile

    Route one line's calls to an additional profile instead of the default; needs the line's current expectedVersion.

    Free
  • photon__unassign_voice_line_profile

    Send a line back to the project's default Voice profile.

    Free
  • photon__batch_update_voice_line_profiles

    Atomically set or clear (profileId null) the profile override on up to 100 lines; every expectedVersion must match or nothing changes.

    Free
  • photon__get_metrics_schema

    The message_events SQL schema, dialect, capabilities and limits query_metrics accepts.

    Free
  • photon__query_metricsRun read-only SQL over the project's message_events table (delivery outcomes, volumes, latency by platform); get_metrics_schema lists the columns.
    Free

    parameters bind named placeholders.

  • photon__get_metrics_backfill

    Progress of the historical metrics backfill (queries work meanwhile).

    Free
  • photon__list_webhook_api_versions

    The published webhook payload versions (calendar dates) and which are selectable for new destinations.

    Free
  • photon__list_webhook_event_types

    The event types a payload version offers (message.created, message.updated, …), with descriptions and schema links.

    Free
  • photon__get_webhook_event_schema

    The JSON Schema of one event type in one payload version.

    Free
  • photon__list_webhook_egress_addresses

    The IP addresses Photon delivers webhooks from, for a receiver's allowlist.

    Free
  • photon__list_webhook_destinations

    The project's webhook destinations (never their signing secrets).

    Free
  • photon__create_webhook_destinationRegister an HTTPS URL to receive events of a payload version.
    Free

    The answer carries the signing secret once — keep it for verifying webhook-signature headers (Standard Webhooks).

  • photon__get_webhook_destination

    One webhook destination's configuration.

    Free
  • photon__update_webhook_destinationChange a destination's URL, name, description (null clears), events or status (disable to pause delivery).
    Free

    The payload version cannot change.

  • photon__delete_webhook_destination

    Delete a webhook destination (repeating is safe).

    Free
  • photon__rotate_webhook_secret

    Issue a destination a new signing secret (returned once); the old one keeps verifying for overlapSeconds (default a day).

    Free
  • photon__retry_webhook_deliveryWake a waiting (backed-off) delivery for an immediate attempt; expectedAttemptCount fences stale requests.
    Free

    Answers 202: an attempt, not a success.

  • photon__download_attachmentRead an attachment's bytes (up to 2 MiB): an image comes back as an image, audio as audio, text or JSON as text, anything else as an embedded blob.
    Free

    A just-uploaded attachment may answer 409 ATTACHMENT_NOT_READY with a Retry-After.

  • photon__upload_attachmentUpload a file (base64, up to 10 MiB) as a project attachment and get its pho_att_… id, to send with send_message as an attachment or voice note.
    Free

    Give the real content type (image/jpeg, audio/mp4, application/pdf, …); Photon checks it against the bytes.

Pages about Photon

Give this to your agent

set up https://corespeed.io/SKILL.md
Get started
FAQ

Questions people ask.